PDA

Click to See Complete Forum and Search --> : cin or scanf or what?


arachnid
Sep 13th, 2000, 06:25 PM
Is there a way to input a int from a console application and make it where it doesn't create a newline after you press enter? so you can prinf more text on the same line you got the input from?

SteveCRM
Sep 14th, 2000, 04:49 PM
cin >> YourVariable; //don't end the line with endl

arachnid
Sep 16th, 2000, 01:19 PM
Just try it. I don't end it with endl, i just use
cin >> variable;

it automatically makes a newline when you press enter to input the data. there HAS to be a way to skip that part.