Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Colors/styles For Text?, How do we change colors?
ewcreators
post Dec 7 2007, 01:01 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 59
Joined: 28-August 07
Member No.: 48,983



How do i change colors or styles of text in c++?
like for colors eg. :
hello world
for styles:
Hello World
Go to the top of the page
 
+Quote Post
CrashCore
post Apr 14 2008, 04:44 AM
Post #2


Super Member
*********

Group: [HOSTED]
Posts: 225
Joined: 8-April 05
Member No.: 5,385



QUOTE(ewcreators @ Dec 7 2007, 08:01 AM) *
How do i change colors or styles of text in c++?
like for colors eg. :
hello world
for styles:
Hello World


Such a thing is not really possible. Really, things like style and color are part of the output, and if you are using something like cout (in iostream) it is only sending a string to Standard Out.

Even with something such as printf (this is, of course, a Java function, but there is something similar in C++), the output text is simply formatted into a different string. Attributes such as color and style are a part of the OS or the environment that you are running in. If you are writing this code in Visual C or something, it may be possible. This topic is covered a little here:

http://bytes.com/forum/thread131982.html

If you would like a Visual C tutorial for this, I believe that this will work:

http://www.daniweb.com/forums/thread9921.html

Hope this helps!
Go to the top of the page
 
+Quote Post
ivenms
post May 3 2008, 04:58 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 53
Joined: 6-August 06
Member No.: 27,912



For normal C, use header file GRAPHICS.H for advanced graphics support for your programs in C.

There are many built in functions to set the style of text and other output objets.

Read the document of GRAPHICS.H for its every functions and its uses.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. The Best And Free Website/html Editors + Text Editors(47)
  2. Background Image Swap Script(15)
  3. What Program Do You Use To Design Your Web?(82)
  4. Text Editors Vs Word Processors(1)
  5. Read-only Folders In Xp(11)
  6. How To Use Command Prompt As A Text Editor(6)
  7. What Would You Rather Change In Windows(5)
  8. How To Change Windows Xp Language ?(20)
  9. Qupis : Free Hosting With Php, Mysql, Cpanel. (one Line Text Ad At Bottom)(41)
  10. Chage Ip Adress(2)
  11. Change Your Computer Password(6)
  12. Whow to change template on php nuke(4)
  13. Change Font Size On Taskbar Buttons(4)
  14. Text Based Rpg Game Maker(2)
  15. Change Domain Name On Account Creation?(2)
  1. Colors In Foods Have Different Health Purposes(6)
  2. Adding Shine To Text(1)
  3. Text Size Problem(6)
  4. Text Based Game(5)
  5. Power Distribution Change Reboot After 8pm Pst On Saturday May 31, 2008(5)
  6. Job Site(8)
  7. How Do I Change The Default Windows Font Size?(3)
  8. Flatfile User Login/signup(24)
  9. Any Advice From Experts?(3)
  10. Adobe Photoshop Fire Text(5)
  11. Darkthrone(5)
  12. Delphi Tutorial - Change Your Start Button Caption(4)
  13. What Eye Colour Would You Prefer?(92)
  14. Speakonia Voice Synthesizer - Free Download(6)
  15. Text-link-ads(0)


 



- Lo-Fi Version Time is now: 20th July 2008 - 05:47 PM