![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2007
Posts: 1
Rep Power: 0
![]() |
How to change the color of my text
Hi Every Body i'm new member to this useful forum and want to ask some questions
i wrote the code #include <iosystem> using std::cout; void main() { cout>> "Hello C++ World"; return 0; } it works ,but i didn't know how to change the color of my text how to show the carriage cursor how to change the postion of the beginning of the text on the screen so pls can some one help me. ![]() |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,260
Rep Power: 5
![]() |
Re: How to change the color of my text
You need to read the sticky post in the C++ forum entitled "How to ask a question".
However, to answer your question: you can't, at least not in standard C++. Text colour is manipulated in manners specific to your operating system, to the type of display or display driver, and non-standard library functions installed on your system or supported by your compiler. You will need to read the documentation for your system, compiler, target display, etc and find the approach yourself. Incidentally, the main() function is required to return int. |
|
|
|
|
|
#3 | |
|
hi: for(;;) goto hi;
|
Re: How to change the color of my text
Quote:
cout>> "Hello C++ World"; is bullshit. Unless "iosystem" rolls that way. Big WTF
__________________
How do you play Religious Roulette? Stand around in a circle and blaspheme till someone gets struck by lightning. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i cant change text color in vc++ | tamer1221 | C++ | 3 | Apr 22nd, 2006 7:02 AM |
| how to change text colour in C | chungchung | C | 6 | Aug 16th, 2005 4:00 PM |
| How to detect cursor location and insert text??? | syntax-error | C# | 3 | Jun 30th, 2005 2:42 AM |
| Printing rich text with colored background | jarrod | C# | 1 | Feb 23rd, 2005 12:48 PM |