| | |
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)
Views: 6037 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for C++
api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library lines linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return simple sort spoonfeeding string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





