请告诉我这个函数的功能?
c语言的库函数啊:clrscr();
谢谢!
请告诉我这个函数的功能?
c语言的库函数啊:clrscr();
谢谢!
是清屏函数吧
原型:extern void clrscr(void); extern void ClearScreen(void); 用法:#include <system.h> 功能:清屏 说明:清除屏幕缓冲区及液晶显示缓冲区 光标位置回到屏幕左上角。 举例: // clrscr.c #include <system.h> main() { clrscr(); textmode(0x00); printf("Press a key"); getchar(); ClearScreen(); printf("Another Screen"); getchar(); return 0; }
函数名: clrscr 功 能: 清除文本模式窗口 用 法: void clrscr(void); 程序例:
#include <conio.h>
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; }