PejuangBangsa PejuangBangsa
komuniti-identiti
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   fchat fChat   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tutorial C++.

 
Post new topic   Reply to topic    PejuangBangsa Forum Index -> C ++
View previous topic :: View next topic  
Author Message
Farispb
Hulubalang Melayu


Joined: 17 Apr 2006
Posts: 263
Location: Tanah Melayu

PostPosted: Tue May 09, 2006 10:01 pm    Post subject: Tutorial C++. Reply with quote

Assalamualaikum..salam semua..
Ok, cara terbaik untuk mempelajari bahasa program ialah dengan menaip program tersebut!. Ini contoh program permulaan(basic) anda, harap gembira dengan program pertama anda!



Rajah diatas adalah contoh program yang ditulis dengan bahasa c++.





Rajah diatas adalah hasil(output) yang akan anda perolehi.


//Program pertama C++ dengan PejuangBangsa

Ini adalah baris komen, setiap kali anda membuat komen, komen anda akan diabaikan. Jadi simbol "//" memainkan peranan sebagai penanda komen anda. Simbol inilah yang menjadikan statement tersebut sebagai komen.

#include <iostream>

Baris yang dimulakan dengan tanda "#" adalah “header files”, dalam program ini kita menggunakan #include <iostream>, sebagai contoh setiap kali kita mahu menggunakan “cout” atau “cin” kita perlu menggunakan “header files” <iostream>, kerana fail “cout” dan “cin” berada didalam fail iostream.h.

int main( )

Baris “int main ( )”, adalah baris utama yang perlu ada untuk memulakan kod-kod C++ . Selepas daripada baris tersebut, ada “braces”{ } yang merupakan “main function”.

cout << “Hello Crewz!!”;

Baris ini adalah baris yang memainkan peranan sebagai hasil atau ”output”, dan memainkan peranan sebagai proses didalam “main function”.


=============================================

Cara-cara untuk menggunakan c++ software tclite

1)Pertama sekali letak file tclite di drive c anda.
2)Kemudian run command prompt anda.
3)Taip "cd".
4)Taip "cd tclite".
5)Taip "cd bin".
6)Taip "tc"
7)TCLITE sedia untuk digunakan.
8)Untuk Run Program yang anda telah cipta guna ctrl+F9


*Tamat pelajaran pertama* (basic)
Sebarang persoalan boleh dipos didalam bahagian ini.
_________________


Last edited by Farispb on Wed May 10, 2006 1:42 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ar_meil
Hulubalang Melayu


Joined: 09 May 2006
Posts: 118
Location: gugusan kepulauan melayu

PostPosted: Tue May 09, 2006 11:50 pm    Post subject: Reply with quote

amat menarik , tertarik , kao mmg da bom .. - hehe oit faris kalo ye pon bg la link software tcLite tuh .. oit .. kitorang tarak software c++ Rolling Eyes
_________________
niatku karena ALLAH s.w.t



http://armeil.pandela.net
http://dxter3.deviantart.com
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Farispb
Hulubalang Melayu


Joined: 17 Apr 2006
Posts: 263
Location: Tanah Melayu

PostPosted: Wed May 10, 2006 1:10 am    Post subject: Reply with quote

ok link utk korang amik c++ korang leh klik link ni..kalau ade sebarang masalah bolehlah post kat sini..

korang boleh klik link kat bawah ni..untuk download tclite.

http://us.f13.yahoofs.com/bc/4460c8ac_14d66/bc/My+Documents/tclite.zip?bfk9MYEB18y62.mt
_________________
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
last_kiss
Ahli Setia


Joined: 16 Apr 2006
Posts: 52
Location: Malaysia

PostPosted: Fri May 12, 2006 4:03 pm    Post subject: Reply with quote

cane na wat kalkulator gune c++ ar?aku da lupe ar..dulu ade gak blajo..tapi langsung lupe da..wakakaka
_________________
http://lif3-n-m3.blogspot.com totally me

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ar_meil
Hulubalang Melayu


Joined: 09 May 2006
Posts: 118
Location: gugusan kepulauan melayu

PostPosted: Fri May 12, 2006 8:58 pm    Post subject: Reply with quote

Laughing heh calculator saintifik pon bleh wat pakai c++ .. eden pon lupo .. weit faris .. kite kene revision balik .. wey ... lame dh x study c++
_________________
niatku karena ALLAH s.w.t



http://armeil.pandela.net
http://dxter3.deviantart.com
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
last_kiss
Ahli Setia


Joined: 16 Apr 2006
Posts: 52
Location: Malaysia

PostPosted: Sat May 13, 2006 8:14 am    Post subject: Reply with quote

aku kene study balik neyh..next sem ade computer programming..ampes klapes declampes tol...ahahah
_________________
http://lif3-n-m3.blogspot.com totally me

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Farispb
Hulubalang Melayu


Joined: 17 Apr 2006
Posts: 263
Location: Tanah Melayu

PostPosted: Sat May 13, 2006 3:23 pm    Post subject: Reply with quote

so..bole ar antar soklan kat sini..bantu membantu..
_________________
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    PejuangBangsa Forum Index -> C ++ All times are GMT + 8 Hours


Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum