Change the colour in c
-
Hi all friends; I am a beginner in c(win32 console). I want to change the colour of characters & background in c. How to do it? PLEASE EXPLAIN AS COMPLETE AS POSSIBLE... Thanks all.
-
Hi all friends; I am a beginner in c(win32 console). I want to change the colour of characters & background in c. How to do it? PLEASE EXPLAIN AS COMPLETE AS POSSIBLE... Thanks all.
hasani2007 wrote:
PLEASE EXPLAIN AS COMPLETE AS POSSIBLE...
1. Read the guidelines[^] before posting a question. 2. Do not use capitals to emphasise, it is considered bad manners. 3. Do not make demands for full explanations/code. People will give what they can without being prompted. 4. Learn to use Google, Bing and MSDN to do your own research first. This link[^] has some suggestions to get what you want.
It's time for a new signature.
-
Hi all friends; I am a beginner in c(win32 console). I want to change the colour of characters & background in c. How to do it? PLEASE EXPLAIN AS COMPLETE AS POSSIBLE... Thanks all.
hasani2007 wrote:
I want to change the colour of characters & background in c.
Check out
SetConsoleTextAttribute()
."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Hi all friends; I am a beginner in c(win32 console). I want to change the colour of characters & background in c. How to do it? PLEASE EXPLAIN AS COMPLETE AS POSSIBLE... Thanks all.
What about documentation: "Using Console (Windows)"? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]