Answers for "gotoxy function in c"

0

gotoxy function in c

#include <windows.h>    //  header file for gotoxy

// Gotoxy function
COORD coord= {0,0}; // this is global variable
void gotoxy(int x,int y)
{
    coord.X=x;
    coord.Y=y;
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord);
}
Posted by: Guest on May-29-2021

Browse Popular Code Answers by Language