This commit is contained in:
fofolee
2019-04-08 23:22:26 +08:00
commit 7ca94f1141
5960 changed files with 530244 additions and 0 deletions

41
docs/c/gotoxy.html Normal file
View File

@@ -0,0 +1,41 @@
<h1>标准库函数 - gotoxy</h1>
<p>原型extern void gotoxy(int x, int y);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:将光标移动到指定位置</p>
<p>说明gotoxyxy将光标移动到指定行y和列x。</p>
gotoxy00将光标移动到屏幕左上角。
moverowcol是到gotoxy的宏将光标移动到指定行row和列col
move11将光标移动到屏幕左上角。
举例:<pre>
// gotoxy.c
#include &lt;system.h>
main()
{
int i;
char *scrbuf=(char *)0x280;
/* write to ScreenBuf, faster than printf or putchar */
for(i=0;i<85;i++) scrbuf[i]='+';
UpdateLCD(0x00);
gotoxy(2,2); // row 3, col 3
getchar();
move(2,2); // row 2, col 2
getchar();
return 0;
}
</pre>相关函数:无