gotoxy()

Code:
void gotoxy(short x, short y) 
{
  HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
  COORD pos;
  pos.X=x-1;
  pos.Y=y-1;
  SetConsoleCursorPosition(hCon, pos);  
}
 
Zurück