clrscr() 屬於 cnoio.h ,但是在c++ 中用不了。
想請教各位 c++ 中的清屏函數是什麼?
system("clr")//#include <processs.h>
system("cls");
VC6.0下 system("cls") //using namespace std
clrscr不是標準C函數,被拿掉了。標準conio中的cgets,cputs等都可以在C++中用。clrscr在Borland C++ 2006中還可以繼續使用。
#include <process.h>
#include <iostream.h>
void main()
{
int i;
cin>>i;
if ( i == 57)
system("cls");
}