C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 14th, 2005, 03:35 AM
Zerokule Zerokule is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 4 Zerokule User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 31 sec
Reputation Power: 0
Talking Some simple commands needed

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

Reply With Quote
  #2  
Old January 14th, 2005, 05:18 AM
marmo marmo is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 37 marmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 5
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.

Reply With Quote
  #3  
Old January 14th, 2005, 01:56 PM
Zerokule Zerokule is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 4 Zerokule User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 31 sec
Reputation Power: 0
Thank you!

Reply With Quote
  #4  
Old January 14th, 2005, 07:24 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Some simple commands needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT