函數名: clrscr
功能: 清除文本模式窗口
用法: void clrscr(void);
程序例:
#include
int main(void)
{int i;
clrscr();
for (i = 0; i < 20; i++)
cprintf("%d\r\n", i);
cprintf("\r\nPress any key to clear screen");
getch();
clrscr();
cprintf("The screen has been cleared!");
getch();
return 0;
}