uTools-Manuals/docs/c/ClearScreen.html

31 lines
528 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>标准库函数 - ClearScreen</h1>
<p>原型extern void clrscr(void);<br>
extern void ClearScreen(void);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:清屏</p>
<p>说明:清除屏幕缓冲区及液晶显示缓冲区
<p>光标位置回到屏幕左上角。</p>
举例:
<pre><code class="language-c">
// clrscr.c
#include &lt;system.h>
main()
{
clrscr();
textmode(0x00);
printf("Press a key");
getchar();
ClearScreen();
printf("Another Screen");
getchar();
return 0;
}
</code></pre>
相关函数:无