HI can u help me plz to know how can i use colors in c++ and how to get character when im gevin its AsCII code?
thanx alot
HI can u help me plz to know how can i use colors in c++ and how to get character when im gevin its AsCII code?
thanx alot
>how can i use colors in c++
Platform dependent.
>how to get character when im gevin its AsCII code?
char a;
cin >> a;
cout << (int)a;
if you're using Turbo C++ like i am... you should include the graphics.h header file.
it has tons of graphics junk in it.
good luck
search the board...
If it's for dos then go to the dos board somebody posts it once a week almost basicly it is just a function in conio.h I don't use it much so I can't explain how to use it but I can tell you two ways they will tell you.
1 way will be a bunch of weird code and it will turn all text after what ever color
2 this one is like set color() or something and you have to use cprintf()
+++
++
+ Sekti
++
+++