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!!!
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.
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
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); }