Need help programming with C++

April 13, 2011 at 16:27:05
Specs: Windows Vista
I'm having some trouble trying to program these problems and putting them into the main function. Please help me by giving some advice or website that offer good information for me.
The questions are below here:
1. Write a function that accepts a string of characters from a user and displays the string one word per line.
2. Write a function that accepts a string of characters, then output all the characters of the string in a reversed order.
3. Write a function that counts the number of words in a string. A word is encountered whenever a transition from a blank space to a non-blank character is encountered. Assume that the string contains only words separated by blank spaces.
4.Write a function that accepts a string from a user and convert all lower case letters to upper case letters and also eliminates all blank spaces in the string.

Write a program that tests all the above functions.

See More: Need help programming with C++

Report •

April 13, 2011 at 16:38:51
More homework questions.

If you at least make an attempt at it and if you get stuck, I am sure someone will point you in the right direction but no one is going to do the whole thing for you.


Report •

April 13, 2011 at 16:44:05
Do not do the entire homework. I want some feedback and some advice on how to start and at least give me some good website that i can get some information from it because my book does not relate to my homework. Thank you for the respond.

Report •

April 13, 2011 at 17:14:39
all involve inputting a line. processing it, then outputting the result,

Report •

Related Solutions

April 13, 2011 at 23:33:11
Any book on C++ should explain how to do simple input, output, and string processing like this. If you are still having problems then you should discuss your difficulties with your teacher.

Report •

Ask Question