Main C++ mai color use krna chahta hon,
e.g
1:cout << "How are you?" << endl;
2:cout << "What are you doing buddy? " << endl;
line 1 ko read aur 2 ko green color dayna chahta hon, to kayse
plz help me...
Main C++ mai color use krna chahta hon,
e.g
1:cout << "How are you?" << endl;
2:cout << "What are you doing buddy? " << endl;
line 1 ko read aur 2 ko green color dayna chahta hon, to kayse
plz help me...
yes its good qustion i also wnt to know how can we use color??
reply plzzzzzzzzzzzzzzz
reply plz that how can we use color ?
There are various methods to do so, jst google it, if u dont like mine or wana mess around with colours etc..Use this method to change colours of text.Here u go guys...
oh and remember to add <windows.h>Code:#define black 0 #define dark_blue 1 #define green 2 #define cyan 3 #define red 4 #define dark_purple 5 #define brown 6 #define gray 7 #define dark_gray 8 #define blue 9 #define neon_green 10 #define light_blue 11 #define light_red 12 #define purple 13 #define yellow 14 #define white 15 // function to set color void color(int color) { HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon,5); cout << "Saif"; }
agar koi aur question ho to i will be glad to help..
Asallam o aliykum
bhai jan borlabd c++ main object ko file main kaise write aur read karte hain ?
main ne reinterpret_cast b use kar liya nh ho raha hai
please bhai log batado
Thanks for information
plz type full code and show how this use it
اچھی کاوش ہے
جاری رکھو
Bookmarks