visual studio中使用clrscr程序出错

clrscr()函数的作用是“清屏”,即把标准输出设备中以前的显示记录清除,包含在头文件#include<conio.h>中,但暂时较旧的编译器中没有这个。

如果想要具有相同作用的函数,可以使用:

system("cls"); 头文件包含#include <stdlib.h> (Windows平台)

system("clear");(unix/Linux平台)

posted @ 2018-01-29 17:01  小嘉欣  阅读(614)  评论(0编辑  收藏  举报