What function we can use instead of gotoxy () | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

What function we can use instead of gotoxy ()

We use gotoxy() funtion in c for printing a code in some specific lines . I am using visual studio and its not supporti g gotoxy () fuction so please tell me another way to do that

10th Jan 2017, 8:00 PM
Shariqa Anjum
Shariqa Anjum - avatar
2 Réponses
0
Function gotoxy() isn't neither C++ nor C standard. If you use Windows try this: #include "windows.h" void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); }
10th Jan 2017, 10:00 PM
Łukasz D
Łukasz D - avatar
0
still i have used void and windows.h also but still it is showing that "expected-unqualified id before goto
5th Apr 2018, 7:48 AM
Pratap ksp
Pratap ksp - avatar