| | |
Clearing the screen
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2004
Posts: 28
Reputation:
Solved Threads: 0
actually there is a way around that... you could cout a bunch of back spaces...
or you could cout the ascii equivilent
C++ Syntax (Toggle Plain Text)
cout << "\b\b\b\b\b\b";
or you could cout the ascii equivilent
Yea u can...backspaces need to b calculated...however thers a simple approach to the problem
jus print the required number of newline chars i.e '\n'
use the following code:
for(int i=1;i<26;i++)
cout<<"\n';
if ur program works on a loop structure then i'd suggest using the system("clear") option (Linux) or system("cls") for Windows
jus print the required number of newline chars i.e '\n'
use the following code:
for(int i=1;i<26;i++)
cout<<"\n';
if ur program works on a loop structure then i'd suggest using the system("clear") option (Linux) or system("cls") for Windows
![]() |
Similar Threads
- Clearing Screen and time limit (C++)
- Clearing Screen in the console (C++)
- Clear screen (C++)
- I Summon Clear Screen (C++)
Other Threads in the C++ Forum
- Previous Thread: creating a grammer checker in c++
- Next Thread: Program design (help)
| Thread Tools | Search this Thread |
api array arrays based binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





