| | |
How to make colored output
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
ok here I want to know how to make colorated output in C and C++...
For example: I want to print this string "zelena". The color must be green. Now how to get green output using printf() in C and cout << "zelena";
For example: I want to print this string "zelena". The color must be green. Now how to get green output using printf() in C and cout << "zelena";
dwk
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
•
•
Join Date: Jan 2007
Posts: 45
Reputation:
Solved Threads: 3
every chatacter occupies 2 Bytes in VDU memeory.
First is for its ascii value, while next for its color.
To change the color of the text, u need to change this Byte.
First is for its ascii value, while next for its color.
To change the color of the text, u need to change this Byte.
![]() |
Similar Threads
- Output 2D array? (C++)
Other Threads in the C++ Forum
- Previous Thread: Activating list in MS VC++ EE.
- Next Thread: It's cinfull!
Views: 3096 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll dynamic encryption error file forms fstream function functions game givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linker linux loop looping loops map math matrix memory microsoft newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort stream string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






