How can I remain in a same line by pressing enter button in c++ : I am working on a programe but now I am stick with a problem and the problem is I want to enter two numbers but with the cursor in same line when ever I enter any number and press enter it moves to the next line but I want it on the same line.please help me!!