Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!