Tuesday, July 14, 2009

C++ string question?

a program that takes an input string from the user and outputs as a single string, the first word following the first comma, the second word following the second exclamation point and the third word following the first semi-colon.





For example if the input string is:





?; Moon? Area! Formula, Precision; Label! First? Last! Text





The result would be





Precision Last Formula can u pls pls give me some ideas or codes to do it?ty

C++ string question?
Search for the first comma and then get back until you will find a space, and write on the screen the characters. Do the same for others.


No comments:

Post a Comment