📜  如何在 c 语言中使用 gotoxy - 任何代码示例

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

代码示例1
#include
#include
void gotoxy(short x, short y)
{
    COORD pos = {x,y};//sets co-ordinates in(x,y)
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
int main
{
   gotoxy(10,12);
   printf("Aman Yadav");
   return 0;
 }