gotoxy function in c in code blocks code example
Example: gotoxy function in c in code blocks
#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);
}