If I get some value by using getline( cin, myStr );
a newline is printed after the information the user entered - logically as he pressed enter:
Please enter something: ABC <enter => \n>
This text is printed out by the program and should be in the same line as before
- How to keep the newline after user input away?
I'm using MSVC 2010 and build a simple console app using iostream
and string
as main libraries.