| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
This is my first time posting here. My question, I'm guessing, is a relatively easy one to answer. I've recently just gotten back into C++ and am starting at the beginning again with console programming. I decided to make a cribbage game since it is one of my favorites. However, I am having a slight problem. I can't remember what function you use to clear the screen of all text. I've searched around a bit and didn't find anything to help me...either that, or I'm blind. Either way, I can't figure it out. I hope this is an easy one to answer...it would help me out a ton. Thanks in advance.... |
|
#2
|
||||
|
||||
|
try: clrscr()
|
|
#3
|
|||
|
|||
|
clearing the screnn per ansi escape sequenz
you can clear the text screen with an ansi escape sequenz:
pritnf("\033[2J"); |
|
#4
|
|||
|
|||
|
or:
Code:
system("cls");
for this you need to Code:
#include <cstdlib> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Clearing the screen in a C++ console program. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|