CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

12Next
Return to list New
View: 3983|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
...BYE 2024, HELLO 2025...
seribulan...BYE 2024, HELLO 2025...
Views : 54993 Replies : 13
...AZAM TAHUN 2025...
seribulan...AZAM TAHUN 2025...
Views : 55522 Replies : 25
[Netflix 2021] SQUID GAME Season 1,2,3 - Lee Jung Jae, Lee Byung Hun, Wi Ha Joon, Gong Yoo ~ 26 Dec 2024 (Season 2), 2025 (Final Season)
Rahah[Netflix 2021] SQUID GAME Season 1,2,3 -
Views : 29125 Replies : 254
...CHAT HUMANITARY...HAPPY NEW YEAR...
seribulan...CHAT HUMANITARY...HAPPY NEW YEAR...
Views : 44248 Replies : 29
V82: HANIS HAIZI B. ABD HAMID Melarikan Diri Dari Bayar Cukai LHDN Ke Los Angeles CA
anony-mousV82: HANIS HAIZI B. ABD HAMID Melarikan
Views : 11125 Replies : 449
New Chapter 01: FATTAH AMIN ~ Bebaskanlah mimpi-mimpi terindah
codenamedreamNew Chapter 01: FATTAH AMIN ~ Bebaskanla
Views : 47200 Replies : 1958
siri ikonik Korea, Squid Game 2 ditayangkan di Neflix hari ini
YgBenarsiri ikonik Korea, Squid Game 2 ditayang
Views : 13087 Replies : 5
Instafamous Rempit (kak yah, kak zah & the geng) part 3
hotmakInstafamous Rempit (kak yah, kak zah & t
Views : 232317 Replies : 1832
madu gula tok matahari
aaanf14madu gula tok matahari
Views : 109982 Replies : 1152
Acikpor vs. Ngai, isu tajaan MARA dikorek
maklukpenggodaAcikpor vs. Ngai, isu tajaan MARA dikore
Views : 52274 Replies : 1477

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


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

28-12-2024 08:27 AM GMT+8 , Processed in 0.061166 second(s), 38 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list