| | |
clear screen
Please support our C++ advertiser: Intel Parallel Studio Home
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.
#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; }
0
•
•
•
•
Sorry about that, but that's the only thing I could find on how to clear the screen, and so far I could get to work only on Dev-C++
0
•
•
•
•
the code should be ANSI standard code to work on all compilers, and i DONT see any un-ANSI code! it should work on others, i have compiled DevC++ projects on MSVC++ Before without any problems
Similar Threads
- Clear Screen (Assembly)
- Clear screen... ? (Java)
- clear screen (C++)
- How do i clear my screen in C++ (C++)
- Clear screen (C++)
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelp homeworkhelper iamthwee ifstream input int java lib list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg simple sorting string strings temperature template text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets



