Jan10

Selamat Idul Adha 1426 H

btw, karena iri sama oom Guruh dan Lynxluna di MyQ… he he…, daku akhirnya kepincut juga tuk belajar C++, ya siapa tahu bisa jadi game programmer beneran dan di kontrak Square - Enix .. Aamiin , so here My First C++ Program

Tutorial at :
http://www.cplusplus.com/doc/tutorial/program_structure.html

buka VIM
1. ketik vim
2. ketik i untuk masuk ke mode insert
3. lalu ketikan program berikut

#include <iostream>
using namespace std;

int main ()
{
cout < < "Hello World!";
return 0;
}

4. lalu ketik [Esc] dan ketik :wq test.cpp untuk menyimpan file tersebut
5. ketik g++ test.cpp -o test untuk men-compile
6. ketik ./test untuk menjalankan program tsb

here the Result

root@aditubuntu:/home/aditya # g++ test.cpp -o test
root@aditubuntu:/home/aditya # ./test
Hello Worldroot@aditubuntu:/home/aditya #

nah gampang banget kan… [sebenarnya tuk ngulik ini daku butuh 1 jam-an…GILE], btw daku dah beres ngedonlot IDE-nya nih, namanya Anjuta , mudah2an berhasil ngeinstallnya di ubuntu, doain yak

2 Komentar

Trackback: Use this URI to trackback this entry. Use your web browser's function to copy it to your blog posting.

Gravatar: You can have a picture at the top of each your comments by getting a Gravatar

xsalefter
May 16, 2006 1:35 pm

hihihi.. iri ya kang?? sama. Saya juga iri ama mereka yang C++ nya jago2. But sekarang ga lagi otak atik C++. lagi belajar thread di Java.

frozen_x
May 12, 2008 12:22 pm

yes, c++ is best performance high level language, but we must pay it with complexity, ^^. keep learning bro…

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.