Question: 2. Using C++, write a short program that reverses the order of the words in a string. For instance, your function should transform the string

2. Using C++, write a short program that reverses the order of the words in a string. For instance, your function should transform the string "Do or do not, there is no try" to "try no is there, not do or Do". Assume that all words are space delimited and treat punctuation the same as letters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
