+ 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
2 ответов
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);
}
0
still i have used void and windows.h also but still it is showing that "expected-unqualified id before goto