Ceriakan Output mu!
12:38 AM
Posted by amirfazwan
Bismillah.
harini amirfazwan nak ajar satu trick dlm C++.
biasanya,program yang kita dh tulis dan compile,background dia hitam dan tulisan dia putih kan?
ha!amirfazwan akan bagitau mcm mane nk tuka..
1.Ini code warna:
0 = Black2.masukkan:
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White
system("color BT");di dlm code C++ anda,letakkan didlm int main(),atau kat mana function yg anda mahu.
* T=colour untuk text
* B=colour untuk background
contoh:
system("color CE");
Selamat Mencuba!! =)
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
C++,
Tech
. Follow any responses to this post through RSS. You can leave a response, or trackback from your own site.
Subscribe to:
Post Comments (Atom)






October 18, 2010 12:50 PM
ni command prompt punye ni..
October 19, 2010 4:13 PM
hehe..agak ar...
c++,aq blaja stakat ni untuk kuar output kt cmd je...
GUI blom..=P