May I know how to write a c++ program where a string value is to be read in from the keyboard and the program should generate an output in the following format :
Example : Mr Brown*246 The Park Building*Neopets Area*Country
Output :
Mr Brown
246
The Park Building
Neopets Area
Country
May I know what code to use to write the above program? I did try to use 'strtok' to write but it only return to a new line whenever it see a spacing and not a * .
Can anyone please enlightened me on this problem ?
Thank You.



LinkBack URL
About LinkBacks


