C++ Program that *changes words* with STRINGS

I'm a rookie and I need help with this program!! The details are as follows, I appreciate it!

Develop a C++ program that changes words in a string:

Inputs: The user will be prompted for a string and have them enter a string.
Output If the string contains the word "hate" the program will change the word to "love". An example is "I really hate getting up in the morning.", will be changed to "I really love getting up in the morning."

Details: This program will search an entered string for the designated text. It will then do a replace on the text. As much as possible implement the ideas of top-down design. This means to use functions to perform individual operations instead of putting multiple operations in the main function.
And where's your question?
Sorry, I'm just having trouble getting the ball rolling. Once I have the programs started I'm usually good to go, I just have no real solid idea of how to begin this with functions.
If you're completely stumped...

1
2
3
4
int main()
{
     // your code here.
}


when you complete a task in main, consider how you can move it to it's own function.
Topic archived. No new replies allowed.