i have written a basic c++ program to the Console but which looks something like:
ok, there is no problems with this but, when i add a loop, i also would like to clear the screen as there are other display statements in the program now (added while going through the tutorial). what i am looking to accomplish is, clearing the console. it is my understanding that it is referanced in the System namespace or something to that effect as per msdn. how would i go about referancing this "function" of the system namespace as i have declared "using namespace std"? i tried using :Code:#include <iostream> using namespace std; int main(); { cout<<"Hello World"; }
system::console.clear();
system::clear();
std::system::clear(); lol
but, the vs2003 c++ compiler i am using doesnt seem to see this as valid and, im sure for good reason but, i was hoping someone could explain how i need to do this for later use.