| | |
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 beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





