别人编写的gotoxy函数,求讲解int xx=0x0b是什么意思
include<windows.h>voidgotoxy(intx,inty){intxx=0x0b;HANDLEhOutput;COORDloc;loc.X=x;loc...
include <windows.h>
void gotoxy(int x, int y) {
int xx=0x0b;
HANDLE hOutput;
COORD loc;
loc.X=x;
loc.Y=y;
hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOutput, loc);
return;
} 展开
void gotoxy(int x, int y) {
int xx=0x0b;
HANDLE hOutput;
COORD loc;
loc.X=x;
loc.Y=y;
hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hOutput, loc);
return;
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询