C语言,实现每次移动一点
答案:1 悬赏:80
解决时间 2021-01-19 17:17
- 提问者网友:溺爱和你
- 2021-01-18 21:10
C语言,实现每次移动一点
最佳答案
- 二级知识专家网友:举杯邀酒敬孤独
- 2021-01-18 21:15
函数名:gotoxy
原型:extern void gotoxy(int x, int y);
用法:#include
功能:将光标移动到指定位置说明:gotoxy(x,y)将光标移动到指定行y和列x。设置光标到文本屏幕的指定位置,其中参数x,y为文本屏幕的坐标。
gotoxy(0,0)将光标移动到屏幕左上角
例程:
//这个例子将在屏幕中央输出“hello world”
#include
#include
#include
int main(){
clrscr();
gotoxy(35, 12);
cputs("Hello world");
getch();
return 0;
}
原型:extern void gotoxy(int x, int y);
用法:#include
功能:将光标移动到指定位置说明:gotoxy(x,y)将光标移动到指定行y和列x。设置光标到文本屏幕的指定位置,其中参数x,y为文本屏幕的坐标。
gotoxy(0,0)将光标移动到屏幕左上角
例程:
//这个例子将在屏幕中央输出“hello world”
#include
#include
#include
int main(){
clrscr();
gotoxy(35, 12);
cputs("Hello world");
getch();
return 0;
}
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯