I have to write a program for school that prompts the user for a text made up of 5 words each ending with a '/', then extracts and prints each word without the '/'. At each step I have to print the extracted word, the remaining string, and the length of the remaining string... No loops allowed.
I've been working on it all day and all I know how to do is getline(cin, string)! I know I have to use substrings and string length, but I keep getting error messages.
I'd really appreciate any hints on how to extract/store the different words.