A simple demostration of how to clear the console screen in at least Dev-C++ 4.9.8.0 (I don't know about the other since I've only tried it on this one, but may and probably works,, with few if at all minor adjustments), what more can I say, other than it's not the best way to do it but may be useful.
clear screen
#include <iostream>//needs these three lines
#include <stdlib.h>//needs these three lines
using namespace std;//needs these three lines
int main(int argc, char *argv[])
{
cout << "A simple Demonstartion of system(\"cls\");" << endl;
system("PAUSE");
system("cls");//clears the screen
cout << "The first two lines are gone" << endl;
system("PAUSE");
return 0;
}
nico
0
Newbie Poster
eagleeye
0
Junior Poster in Training
bombe
0
Newbie Poster
bombe
0
Newbie Poster
bombe
0
Newbie Poster
eagleeye
0
Junior Poster in Training
1o0oBhP
4
Posting Pro in Training
1o0oBhP
4
Posting Pro in Training
dave2point0
0
Newbie Poster
ShawnCplus
456
Code Monkey
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
ankit_the_hawk
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.