Question Answered as of 2 Years Ago by
nbaztec This is a bit of code showing how to move the cursor, using one API, in the console window.
//you need to include <windows.h>
void Gotoxy(int x, int y) {
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
void function Where I want to move the console cursor(void) {
Gotoxy(1,5);
}
Adak
Posting Virtuoso
1,641 posts since Jun 2008
Reputation Points: 456
Solved Threads: 196
Skill Endorsements: 7