0

Is there a way to change output font colour in c++

I need to print output in varying colours ,is there a way??

14th Aug 2018, 5:50 AM
THE GAMER
THE GAMER - avatar
5 Respuestas
0
THE GAMER i have never tried ,but give it a try with below : system ("color %"); //just to check combination of color for a system system("color A1"); // set one colour cout<<"hi"<<endl; // print output after changing color
14th Aug 2018, 6:04 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
thanks ,but it doesn't seem to work ,well not in solo learn anyway😢
14th Aug 2018, 6:40 AM
THE GAMER
THE GAMER - avatar
0
yes, I also checked first on solo learn and same result
14th Aug 2018, 6:58 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
You need to include library <cstdlib> or <cstdio> and then the example above will work check - https://stackoverflow.com/questions/9965710/how-to-change-text-and-background-color
14th Aug 2018, 8:23 AM
MarJan
MarJan - avatar
0
yeah,i checked that,but none of that works on solo learn😢(it might work on other platforms,of that I am not sure)but thanks!
14th Aug 2018, 8:42 AM
THE GAMER
THE GAMER - avatar