I desperate need of help

Here are my the instructions I have and i have no idea where to start can someone please help me!

2. Prompt the user for a text
3. Read the string entered by the user into a single variable of type string
4. Extract the first word from the original string, store it into a different string variable, and print out both the extracted word and the remaining string. Include the length of the modified string. When printing out each word, and remaining string print a < at the beginning of the word/string and a > at the end of each. (See sample output in figure 2.)
5. Repeat steps 3 and 4 until you have printed the 5 words and the original string is empty.
6. Send a farewell message, so that the user knows that the program has terminated normally.
7. See sample output screen below. You output does not need to be formatted in exactly the same way. Just make sure the required information appears.
I'm not doing your homework for you but this may send you in the right direction:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;
int main (void){

// BLAH BLAH BLAH




return 0;
}

(Since you don't "know" how to start)
Last edited on
I dont want anyone doing my home work i just need a little idea of where to start
Topic archived. No new replies allowed.