gotoxy
原型:extern void gotoxy(int x, int y);
用法:#include <system.h>
功能:将光标移动到指定位置说明:gotoxy(x,y)将光标移动到指定行y和列x。
gotoxy(0,0)将光标移动到屏幕左上角
举例:
#include <system.h>
main()
{
int i;
char *scrbuf=(char *)0x280;
for(i=0;i<85;i++) scrbuf='+';
UpdateLCD(0x00);
gotoxy(2,2);
getchar();
move(2,2);
getchar();
return 0;
}
gotoxy仅在TC下才可以使用。