123
//with windows API ( #include <windows.h> ) COORD newposition = { x, y }; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),newposition);