CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

12Next
Return to list New
View: 3985|Reply: 24

C++ Programming

[Copy link]
Post time 29-9-2006 03:14 PM | Show all posts |Read mode
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:
Reply

Use magic Report


ADVERTISEMENT


Post time 29-9-2006 03:53 PM | Show all posts
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.
Reply

Use magic Report

 Author| Post time 29-9-2006 04:00 PM | Show all posts
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...
Reply

Use magic Report

Post time 29-9-2006 04:31 PM | Show all posts
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...
Reply

Use magic Report

Post time 29-9-2006 06:13 PM | Show all posts
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

Reply

Use magic Report

Post time 29-9-2006 06:15 PM | Show all posts
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

Use magic Report

Follow Us
Post time 29-9-2006 08:03 PM | Show all posts

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...
Reply

Use magic Report

Post time 29-9-2006 08:58 PM | Show all posts
yupp.... nati aku bagi contoh dierr coding..simple jee..
Reply

Use magic Report


ADVERTISEMENT


Post time 29-9-2006 09:00 PM | Show all posts
try nii.. simple jee.. nak tunjuk change color..


  1. #include <iostream>
  2. #include <windows.h>

  3. using namespace std;

  4. HANDLE hConsole;

  5. int main()
  6. {
  7.    hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
  8.    SetConsoleTextAttribute(hConsole,10);
  9.    cout<<"Saye Hensem"<< endl;
  10.    system("Pause");
  11.   
  12.   

  13. }
Copy the Code

[ Last edited by  LimpBizkutMerri at 29-9-2006 09:04 PM ]

Rate

1

View Rating Log

Reply

Use magic Report

Post time 29-9-2006 10:58 PM | Show all posts
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
Reply

Use magic Report

 Author| Post time 2-10-2006 02:08 PM | Show all posts
tq.... :tq:

nanti aku try yek....
Reply

Use magic Report

 Author| Post time 2-10-2006 02:14 PM | Show all posts
apesal byk owang gune dev?? :bgrin:
Reply

Use magic Report

 Author| Post time 2-10-2006 02:53 PM | Show all posts
tq.... tq..... :tq:

mintak lebih sket...

bagi la kod warna pelangi....

merah jambu ke....
Reply

Use magic Report

 Author| Post time 2-10-2006 02:54 PM | Show all posts

Reply #13 aku_EnSeM's post

pastu... kalau nak tuka warna background pulak... bagi ade gambo aku_EnSeM ke...
Reply

Use magic Report

Post time 2-10-2006 05:56 PM | Show all posts
huhuhuhu.. mak oiii.. banyak nyerrr request.. ni macam diberi betis nak paha plakk...huhuh
Reply

Use magic Report

 Author| Post time 5-10-2006 04:12 PM | Show all posts

Reply #15 LimpBizkutMerri's post

tolong la................................... :pray:
Reply

Use magic Report


ADVERTISEMENT


Post time 10-10-2006 11:03 AM | Show all posts
kalau guna microsoft visual c++ sama gak ke?
Reply

Use magic Report

Post time 10-10-2006 11:05 AM | Show all posts
kalu nak tanya soalan assignment kat sini korang leh tolong saya tak?
Reply

Use magic Report

Post time 10-10-2006 11:27 AM | Show all posts
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.
Reply

Use magic Report

Post time 10-10-2006 11:43 AM | Show all posts
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....
Reply

Use magic Report

12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

29-12-2024 12:25 AM GMT+8 , Processed in 0.063337 second(s), 33 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list