How do we make a colourful in python or c++ | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

How do we make a colourful in python or c++

1st Apr 2018, 12:16 PM
Roshan
Roshan - avatar
3 Antworten
+ 1
IN C++: There is no (standard) cross-platform way to do this. On windows, try using conio.h. It has the: textcolor(); // and textbackground(); functions . For example: textcolor(RED); cprintf("H"); textcolor(BLUE); cprintf("e"); // and so on. in python: https://stackoverflow.com/questions/287871/print-in-terminal-with-colors https://stackoverflow.com/questions/37340049/how-do-i-print-colored-output-to-the-terminal-in-python/37340245
1st Apr 2018, 12:20 PM
Baraa AB
Baraa AB - avatar
+ 4
Try SDL2 - C library that can be use for multiple languages https://www.sololearn.com/discuss/498964/?ref=app
1st Apr 2018, 2:39 PM
Manual
Manual - avatar
1st Apr 2018, 12:31 PM
Aaron Eberhardt
Aaron Eberhardt - avatar