|
Kepade Penggune C++
Aku nak mintak coding untuk:
1. Font colour
2. Font size
3. Nak clear windows kalau kite nak bukak selection baru.. Macam kat atm machine tu...
Hehehe..... Aku gune Turbo C++.. Leceh sket. jadik, tlg bg coding untuk turbo ye... :bgrin:
kalau tak dapat, bagi coding biase je...
:tq: |
|
|
|
|
|
|
|
c++ ni macam macam. either under dos environment or windows environment. yang mana satu?
please be more specific in submitting your questions. anggap macam kita tak tau langsung apa yang you ndak. |
|
|
|
|
|
|
|
adus.... tak paham aku istilah komputer ni.........
aku pong tak tau...
aku budak engineer... aku baru blaja basic C++...
output dia buruk sangat... aku nak tuka warna font output dia tu... |
|
|
|
|
|
|
|
oyeke...
ni nak bagitau, kalau nak set color dalam c++, payah :bgrin:
kalau baru belajar c++, biasakan dengan dia punya environment dulu baru boleh fikir nak tukar color ke, tukar font size ke... |
|
|
|
|
|
|
|
Originally posted by aku_EnSeM at 29-9-2006 03:14 PM
Kepade Penggune C++
Aku nak mintak coding untuk:
1. Font colour
2. Font size
3. Nak clear windows kalau kite nak bukak selection baru.. Macam kat atm machine tu...
Hehehe..... Aku gune T ...
okk.. ko pakai c++ kann.. aku pakai dev -c++.. tatau aa function ni leh ke takk..
1. font colour
ko include
#include <windows.h>
HANDLE hConsole;
pastu kat dlm int main ko ke void main ko ke.. include kan command ni
int main()
{
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole,6);
.....
.....
....
}
ko letak command
SetConsoleTextAttribute(hConsole,6);
sebelum word ko.. contohnya
SetConsoleTextAttribute(hConsole,6);
cout <<"Saya hensem"<< endl;
nati Saya ensem tu akan pakai warne yg diset kan ..
yg angka tu code warne.. tak silap aku 6 warne kuning..9 warne merah kot
2) font size
aku luperrr..
3) pakai system("cls");
:hatdown: |
Rate
-
1
View Rating Log
-
|
|
|
|
|
|
|
Originally posted by shahnazz at 29-9-2006 04:31 PM
oyeke...
ni nak bagitau, kalau nak set color dalam c++, payah :bgrin:
kalau baru belajar c++, biasakan dengan dia punya environment dulu baru boleh fikir nak tukar color ke, tukar font size ke...
leh aaa.. set colorr..aku siap ajar lecturer aku pakaii.. sbb die pun tatauu..hahaha.. |
|
|
|
|
|
|
|
Reply #6 LimpBizkutMerri's post
class windows.h boleh pakai kat dos environment tak?
nak try tp takde c++ compiler kat sini, lama dah tinggal, he he... |
|
|
|
|
|
|
|
yupp.... nati aku bagi contoh dierr coding..simple jee.. |
|
|
|
|
|
|
|
try nii.. simple jee.. nak tunjuk change color..
- #include <iostream>
- #include <windows.h>
- using namespace std;
- HANDLE hConsole;
- int main()
- {
- hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(hConsole,10);
- cout<<"Saye Hensem"<< endl;
- system("Pause");
-
-
- }
Copy the Code
[ Last edited by LimpBizkutMerri at 29-9-2006 09:04 PM ] |
Rate
-
1
View Rating Log
-
|
|
|
|
|
|
|
Originally posted by shahnazz at 29-9-2006 08:03 PM
class windows.h boleh pakai kat dos environment tak?
nak try tp takde c++ compiler kat sini, lama dah tinggal, he he...
alee.. download jee.. dev-c++ installer.. bkn lame punnn |
|
|
|
|
|
|
|
tq.... :tq:
nanti aku try yek.... |
|
|
|
|
|
|
|
apesal byk owang gune dev?? :bgrin: |
|
|
|
|
|
|
|
tq.... tq..... :tq:
mintak lebih sket...
bagi la kod warna pelangi....
merah jambu ke.... |
|
|
|
|
|
|
|
Reply #13 aku_EnSeM's post
pastu... kalau nak tuka warna background pulak... bagi ade gambo aku_EnSeM ke... |
|
|
|
|
|
|
|
huhuhuhu.. mak oiii.. banyak nyerrr request.. ni macam diberi betis nak paha plakk...huhuh |
|
|
|
|
|
|
|
Reply #15 LimpBizkutMerri's post
tolong la................................... :pray: |
|
|
|
|
|
|
|
kalau guna microsoft visual c++ sama gak ke? |
|
|
|
|
|
|
|
kalu nak tanya soalan assignment kat sini korang leh tolong saya tak? |
|
|
|
|
|
|
|
bolehhh.... silakan. tapi lebih elok kalau u dah try dulu tapi tak menjadi-jadi.
please be reminded to base your questions as detailed as possible. |
|
|
|
|
|
|
|
Bagi link nak download programming language tuh..
Penah dulu install Dev-C++ kat komputer, then member cakap why not use Visual C++ plak. Pastu try Visual C++, then orang lain cakap why not use Turbo C++ plak... last2 aku pun pening kepada dan tak buat2 dah C++ nie... Just my true story.. hehehe.... |
|
|
|
|
|
|
| |
|