How to prevent cursor from going to newline in c++

Printable View