+ 1

Can we colour the text using code in c++.

If yes please post a code in reply

24th Jun 2020, 10:51 AM
Study King
Study King - avatar
3 Respuestas
+ 8
You can use graphics librabry also for text Use. Outtextxy (value1, value2, " text here"); #include <conio.h> void main() { clrscr(); textcolor(RED); cprintf ("Welcome to Tutorial of Graphics in C/C++\n"); textcolor(LIGHTBLUE); cprintf("Hello\n"); getch(); } .......... Thankyou.........
25th Jun 2020, 9:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Not in a console. Learn GUI.
24th Jun 2020, 11:08 AM
Gordon
Gordon - avatar
+ 3
If your using SFML then yep. text.setFillColor(sf::Color(0,0,255))
24th Jun 2020, 11:30 AM
Olivia
Olivia - avatar