+ 2

Which header file is used for textcolor and cprintf functions in c++?

like if I want to write in program textcolor(9); cprintf("@"); which header file should I include

24th Feb 2017, 5:14 AM
Kuljot
Kuljot - avatar
3 Respuestas
0
cprintf #include <conio.h> By text colors, I am assuming you mean the console windows text color. C++ does not have a platform universal library for this AFAIK. So this will depend on the operating system you're working with. However, there is/was a library called ncurses that may help with what you're after. Try Googling "ncurses colors".
24th Feb 2017, 5:53 AM
ChaoticDawg
ChaoticDawg - avatar
- 1
thanks man it helped
24th Feb 2017, 3:33 PM
Kuljot
Kuljot - avatar
- 1
How it helped
27th Dec 2020, 5:54 AM
Rajdeep Mazumdar
Rajdeep Mazumdar - avatar