| | |
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 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 integer 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 struct template text tree url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





