0

How to use gotoxy

24th Feb 2020, 3:14 PM
Mental ki public
2 Respostas
0
gotoxy(x_value, y_value); Then current console pointer goes to (x, y) co-ordinates on the screen which given as arguments.. This function is from conio.h header file. A deprecated header. Also Not from standards. I think this works only on Turbo C... So search in net for more info.
24th Feb 2020, 3:32 PM
Jayakrishna 🇮🇳
+ 1
void gotoxy(int x, int y){ COORD coord; coord.x = x; coord.y = y; setConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } use this on your c code and run it on windows, and i suggest to leave that old turbo c++ if youre using gotoxy from that ide.
27th Feb 2020, 9:22 PM
Shen Bapiro
Shen Bapiro - avatar