#include <iostream>
#include<string>
#include<windows.h>//得有这个库
using namespace std;
int main()
{
HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);//获得屏幕的尺寸。
COORD pos ={12,12};//设置坐标
SetConsoleCursorPosition(hOut,pos);//设置位置
cout<<"test";
system("pause");
return 0;
}
#include<string>
#include<windows.h>//得有这个库
using namespace std;
int main()
{
HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE);//获得屏幕的尺寸。
COORD pos ={12,12};//设置坐标
SetConsoleCursorPosition(hOut,pos);//设置位置
cout<<"test";
system("pause");
return 0;
}
