Good day ma'am/sir,
i just wanna ask how to add color in a just specific word?
because i tried this one
but still the whole output is colored red.
please help, THANKS!
Jump to Post
I'm no longer hip on Turbo C stuff, but if textcolor() works in any sane manner, it should set the color to whatever you chose until the next call. So for one word:
textcolor(WHITE); printf("You chose: "); fflush(stdout); textcolor(RED); printf("RED\n"); textcolor(WHITE);
All 6 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.