64,637
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <Windows.h>
int GotoXY(int x, int y)
{
COORD cd;
cd.X = x;cd.Y = y;
return SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),cd);
}
int main()
{
GotoXY(0,100);
std::cout<<"this is a test!"<<std::endl;
getchar();
return 0;
}