+ 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
3 Antworten
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".
- 1
thanks man it helped
- 1
How it helped