+ 1
How to colour text in c++
How can I output coloured text in c++ using cout or anything else if available
3 Respostas
+ 4
#include <conio.h>
void main()
{
clrscr();
textcolor(RED);
textcolor(LIGHTBLUE);
cprintf("Hello\n");
getch();
}
U can also graphics headder file for text print use outtextxy(,,"hello")
Pass 2 value for coordinate
+ 1
Thanks brother could you explain with an example
0
Thankyou bro this is the perfect answer I wanted.
Now i am getting colored text however sololearn dont have conio.h so I am using other cpp Ide.
Btw thanks a lot