可以的,控制台窗口同样有坐标, 其实是光标的坐标#include "windows.h"void setxy(int x, int y){ COORD coord = {x, y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);}直接调用 setxy(10,10); 10和10为坐标