Shasta80,
Post your code so we can have a look :)
Also post any errors you may be getting: compile-time or run-time
Remember to use code tags please
Printable View
Shasta80,
Post your code so we can have a look :)
Also post any errors you may be getting: compile-time or run-time
Remember to use code tags please
Depends on how the user enters data or how you expect him to enter data. If it is important to capture each and every character the person enters - take input character wise and ignore the whitespaces. But if it is not a problem to take in the complete input string, then I would go ahead with getline and remove the un-wanted characters later in one go.