Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your task is to use a secret code to code the input vector of strings. The secret coding proceeds as follows - Write the message
Your task is to use a secret code to code the input vector of strings. The secret coding proceeds as follows - Write the message in a rectangular block, one row at a time. Then writes down the letters as they appear in the columns. Use a '!' if a letter is missing. For example, consider the input role college year student book The output would be - rcysb ooeto llauo elrdk !e!c! !g!n! !e!t! Feel free to use any vector and string methods. # include # include # include using namespace std; void secretCode(vector &in); int main() {vector in; in.push_back("role"); in.push_back("college"); in.push_back("year"); in.push_bavk("student"); in.push_back("book"); cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started