在C++ 中的清屏函數是什麼?

 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");
}

發佈了7 篇原創文章 · 獲贊 3 · 訪問量 14萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章