GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 06-Dec-2004, 23:00
swashplate swashplate is offline
New Member
 
Join Date: Dec 2004
Location: SoCal
Posts: 2
swashplate is on a distinguished road

Can you change the background colors in a console app?


Hello everyone!

Pretty new to C++. I am taking a class and we have to write a console application that mimics a craps game. My team has the dice figured out (drawn out with ASCII characters), what we are looking for is a way to possibly change the entire background of the screen to green. Is there a way to do this easily?

Any help would be greatly appreciated.

Thanks.
  #2  
Old 07-Dec-2004, 00:15
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by swashplate
Hello everyone!

Pretty new to C++. I am taking a class and we have to write a console application that mimics a craps game. My team has the dice figured out (drawn out with ASCII characters), what we are looking for is a way to possibly change the entire background of the screen to green. Is there a way to do this easily?

Any help would be greatly appreciated.

Thanks.
Welcome to GID, swash

That would depend on the operating system you're using as well as the compiler. They all have their own way to do it.
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
  #3  
Old 07-Dec-2004, 10:15
swashplate swashplate is offline
New Member
 
Join Date: Dec 2004
Location: SoCal
Posts: 2
swashplate is on a distinguished road
Quote:
Originally Posted by WaltP
Welcome to GID, swash

That would depend on the operating system you're using as well as the compiler. They all have their own way to do it.

It will be running on a windows XP system with MS C++ from the Visual Studio.Net 2003 package.
  #4  
Old 07-Dec-2004, 21:19
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by swashplate
It will be running on a windows XP system with MS C++ from the Visual Studio.Net 2003 package.
I'm not familiar with the 2003 compiler, but back in the 'old' days M$ had text-based functions. They had names something like setbackgroundcolor(), settextcolor() and others like that. Check the documentation to see if they are still alive. If not, do a search on http://msdn.com for the latest in M$ propaganda... er documentation.
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change the caption on button when clicked drewdaman MS Visual C++ / MFC Forum 4 20-Oct-2004 09:46
Automate a data change php form mjfmn MySQL / PHP Forum 4 20-Oct-2003 10:37
Article by the W3C - Cool URI's don't change jrobbio Web Design Forum 4 28-Apr-2003 07:40

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.