help for COLOR and GOTO function
Guys, good day.
i got this code and it runs but i didn't gets its syntax.
anyone have an explanation or data about this?
thanks.
i am using bloodshed dev c++ compiler
you are very much appreciated.
Code:
void color(int colorNum)
{
//colors
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, colorNum);
//colors
}
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}