| | How do i change colors or styles of text in c++? like for colors eg. : hello world for styles: Hello World |
|
|
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!
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.
Similar Topics
Keywords : colors, styles, text, change, colors,
Looking for colors, styles, text, change, colors,
|
|
![]() Colors/styles For Text? - How do we change colors? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|