Hi!
I try to use gotoxy function in my c programs but it doesn't work,Can I ask for a help?what is the proper use of gotoxy and its corresponding header file?
thanks!!!
Printable View
Hi!
I try to use gotoxy function in my c programs but it doesn't work,Can I ask for a help?what is the proper use of gotoxy and its corresponding header file?
thanks!!!
gotoxy is not a standard C function, therefore you'll need other libraries for that, for example OS specific API's. The FAQ contains an example how this could be done in a Windows program.
Filipino professors are really dumb cause they always asks us to use non C standard functions
Anyhow use this function as an alternative
Code:void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}