📜  c中的gotoxy函数 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:07.250000             🧑  作者: Mango

代码示例1
#include     //  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);
}