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?
Printable View
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?
Code:cin >> YourVariable; //don't end the line with endl
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.