| | |
clear screen
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
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 |
Tag cloud for C++
6 api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets



