about string

Will somebody help me coding this problem

Write a program that reads in a line of text and replaces all four-letter words with the word “baby”.
Sample output:
Enter a line of text: You are my love
If the word “baby” replaces all the four-letter words: You are my baby
Of course, the output will not always make sense. For example, if the user inputs: “John will go home” the output would “Baby baby go baby”.
Note: If the four-letter word starts with capital letter, it should be replaced by “Baby“, not by “baby”. You need not check the capitalization, except for the first letter of a word. A word is any string consisting of the letters in the alphabet delimited at each end by a blank, the end of the line, or any other characters that is not a letter. Your program should repeat this action until the user says to “quit”.
Can you show your efforts?
Post some non-working code and we will help you in fixing it
sorry im just a begginer hav no idea how to start this problem
If you really don't have any idea read some of the tutorials http://www.cplusplus.com/doc/tutorial/
Topic archived. No new replies allowed.