232k views
1 vote
Write a program that reads a string containing exactly four words (separated by * symbols) into a single string object. Next, extract each word from the original string and store each word in a string object. Then concatenate the words in reverse order to form another string. Display both the original and final strings. (Hint: To extract the words, you should use the find member function to find each symbol *, assign the characters up to the * to one of the four string objects, and then remove those characters from the original string.)

User Parth Vyas
by
6.9k points

1 Answer

3 votes

Answer:

James was the only person in his amazon to buy the new iPhone version in a car with his wife in a new car with the new York times in a few weeks before he is going through a new era

User Thuan Leminh
by
6.3k points