我想为两个单词设置两个不同的坐标。
我用COORD pos = {20,20}
代表一个单词
我尝试使用
COORD position = {10,10}
SetConsoleCursorPosition(screen, pos)
cout << "word A" << endl
SetConsoleCursorPosition(screen, position)
cout << "word B" << endl
为了另一个但没有运气
答案 0 :(得分:0)
您需要获得标准输出句柄。
HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE);