C++ has no concept of a cursor. It reads and writes ASCII character data through IO streams (cin & cout). If you want to have interactive control over the characters you see on your monitor you have to use an external library like curses (or the newer ncurses and pdcurses versions).