Skip to content

Instantly share code, notes, and snippets.

@RobinMalfait
Last active December 23, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinMalfait/6683715 to your computer and use it in GitHub Desktop.
Save RobinMalfait/6683715 to your computer and use it in GitHub Desktop.
CPP: Go to a specific coord;
#include <windows.h>
void gotoXY (int col, int row)
{
COORD coord;
coord.X = col;
coord.Y = row;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment