| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
First, I'm stoked that there is a place where I can go to get help with my programming, all the so called "experts" at work can't give me a straight answer. Anyways, I'm getting back into c++ and need a solution to clear the screen when I want to put new info there. Also is it possible to print characters in specific locations, for example in the upper right, without having to use a bunch of spaces? Can I change the color of the characters that I print to screen? Thanks in advance!
![]() Last edited by Zerokule : January 14th, 2005 at 03:37 AM. Reason: Need to clarify |
|
#2
|
|||
|
|||
|
You can use system("cls") to clear the screen or check out this article for an alternate method http://cpp.enisoc.com/articles/clrscr/.
It also gives a brief explanation on using char arrays to fill the screen with letters and to move the cursor around. This could help with your second problem. Last but not least, here is a small tutorial for changing the text color in a console app. http://www.3rdlife.net/3port/articles/show.php/38. |
|
#3
|
|||
|
|||
|
Thank you!
![]() |
|
#4
|
|||
|
|||
|
If you're working on a windows enviroment, take a look to the conio.h library. It contains exactly what you want to do in C, but I'm sure there are methods for it in C++
Goog Luck!! Anibal. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Some simple commands needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|