在VC++中如何使用gotoxy函数?

[复制链接]
查看11 | 回复1 | 2016-8-17 09:13:43 | 显示全部楼层 |阅读模式
原型:extern void gotoxy(int x, int y);用法:#include 功能:将光标移动到指定位置说明:gotoxy(x,y)将光标移动到指定行y和列x。设置光标到文本屏幕的指定位置,其中参数x,y为文本屏幕的坐标。gotoxy(0,0)将光标移动到屏幕左上角。程序举例1: #include int main(){int i;char *scrbuf=(char *)0x280;for(i=0;ivoid Gotoxy(int x, int y);void main(){Gotoxy(5,5);}void Gotoxy(int x, int y){
int xx=0x0b;
HANDLE hOutput;
COORD loc;
loc...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行