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





