Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
how to give a color to the text that displayed in output screen
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
harish12345
New Member
Join Date:
Jan 2013
Posts:
1
#1
how to give a color to the text that displayed in output screen
Jan 27 '13, 03:24 AM
i am using c++v30.5 version i want red color text in in my output screen . i viewed various site but the result is 0 ,
wat to do and as well give me a sample program for that
Anas Mosaad
New Member
Join Date:
Jan 2013
Posts:
185
#2
Jan 27 '13, 05:45 AM
We shouldn't give you complete solution, we give you some guidance to help you build your skills. Use
textcolor
from
conio.h
Comment
Post
Cancel
swapnali143
New Member
Join Date:
Mar 2012
Posts:
34
#3
Jan 29 '13, 06:38 AM
You Can try this...........
textattr sets text attributes for text-window functions
textbackground selects a new text background color
textcolor selects a new character color in text mode
Declaration:
void textattr(int newattr);
void textbackground( int newcolor);
void textcolor(int newcolor);
These functions work for functions that produce text-mode output directly to the screen (console output functions).
textattr sets both the foreground and background colors in a single call.
textbackground selects the background color.
textcolor selects the foreground character color.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment