how would i go about printing a single character to a specified co-ordinate??
Printable View
how would i go about printing a single character to a specified co-ordinate??
Some compilers have a gotoxy() function in conio.h, if yours doesn't...
0, 0 is the top-left corner of the windowCode:void gotoxy(int x, int y)
{
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
COORD pos = {x, y};
SetConsoleCursorPosition(hOut, pos);
}
thanks for the quick reply man!
np :D