hi all
could any 1 knows how to add color to printf?
i mean that i want to write a sentence with color in it.
thanx!
severman
0
Junior Poster in Training
Recommended Answers
Jump to PostThere's no portable way to do this. What compiler and operating system are you using? In anticipation of you being on Windows, you can use SetConsoleTextAttribute to give your text color.
Jump to PostYou're all set then. Follow the link I gave in my previous post for details.
All 6 Replies
Narue
5,707
Bad Cop
Team Colleague
severman
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
severman
0
Junior Poster in Training
Colin Mac
53
Posting Whiz
zdaxxy
1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.