Home General Computer Multimedia Business Lounge

Post Reply 
Tutor compile dan run c++ d'linux
07-30-2010, 12:18 AM (This post was last modified: 01-15-2011 01:13 AM by jurank_dankkal.)
Post: #1
compile dan run c++ d'linux
ne bwt yg blm tw ja y.. bangga
oke lanjut..

buka termial

install g++ :
Quote:$ sudo apt-get install g++

buat codingan,misalnya namanya contoh.cpp
Quote:$ pico contoh.cpp

trz isi codingannya,misal :
Code:
#include <iostream>

using namespace std;

int main()
{
        cout << "Belajar berhitung." << endl;
        cout << "The sum of 1 + 1 =" << 1 + 1 << endl;

        return 0;
}

trz exit dan save > tekan ctrl X > Y

compile :
Quote:$ g++ namacoding.cpp -o namacoding

run :
Quote:$ ./namacoding

mga bermanfaat... mewek
Visit this user's website Find all posts by this user
Quote this message in a reply
08-12-2010, 10:10 PM
Post: #2
RE: compile dan run c++ d'linux
I am working with a small group on a C++ project in NetBeans.
#include <stdlib.h>
#include <string>
#include <iostream>

using namespace std;

int main(int argc, char** argv)
{
string test;
test = "Why?";

cout << test << endl;

return (EXIT_SUCCESS);
}
Find all posts by this user
Quote this message in a reply
08-25-2010, 04:06 AM
Post: #3
RE: compile dan run c++ d'linux
(07-30-2010 12:18 AM)jurank_dankkal Wrote:  ne bwt yg blm tw ja y.. bangga
oke lanjut..

buka termial

install g++
Quote:$ sudo apt-get install g++

buat codingan,misalnya namanya contoh.cpp
Quote:$ pico contoh.cpp

trz isi codingannya,misal :
Code:
#include <iostream>

using namespace std;

int main()
{
        cout << "Belajar berhitung." << endl;
        cout << "The sum of 1 + 1 =" << 1 + 1 << endl;

        return 0;
}

trz exit dan save > tekan ctrl X > Y

compile
Quote:$ ./contoh

mga bermanfaat... mewek
Find all posts by this user
Quote this message in a reply
09-24-2010, 03:17 PM
Post: #4
RE: compile dan run c++ d'linux
Bingun COmpile ntu ap wa bwat dai .CPP; .h ;~ampe yg .exe
Find all posts by this user
Quote this message in a reply
10-27-2010, 04:23 PM
Post: #5
RE: compile dan run c++ d'linux
nice share broo
Find all posts by this user
Quote this message in a reply
10-27-2010, 11:40 PM
Post: #6
RE: compile dan run c++ d'linux
oke seep mae... ketawa
Visit this user's website Find all posts by this user
Quote this message in a reply
10-28-2010, 08:59 PM
Post: #7
RE: compile dan run c++ d'linux
mau nanya neh kak
stlah saya cba gnii....
Code:
#include <iostream>

using namespace std;

int main()
{
        cout << "Belajar berhitung." << endl;
        cout << "The sum of 1 + 1 =" << 1 + 1 << endl;

        return 0;
}

seharusnya kan sperti tutorial yang kakak berikan dengan eksekusi command ./contoh
kok beda yah kak..
dsini saya menghasilkan a.out*
dgn eksekusi ./a.out
baru bs kluar persis dgn punya kakak...
kok bs bda yah..??
Visit this user's website Find all posts by this user
Quote this message in a reply
10-31-2010, 10:53 PM (This post was last modified: 11-01-2010 12:14 AM by jurank_dankkal.)
Post: #8
RE: compile dan run c++ d'linux
(10-28-2010 08:59 PM)black-market Wrote:  mau nanya neh kak
stlah saya cba gnii....
Code:
#include <iostream>

using namespace std;

int main()
{
        cout << "Belajar berhitung." << endl;
        cout << "The sum of 1 + 1 =" << 1 + 1 << endl;

        return 0;
}

seharusnya kan sperti tutorial yang kakak berikan dengan eksekusi command ./contoh
kok beda yah kak..
dsini saya menghasilkan a.out*
dgn eksekusi ./a.out
baru bs kluar persis dgn punya kakak...
kok bs bda yah..??
pasti om compilenya
Quote:$ g++ namacoding.cpp
kan, nnti hasilnya bakal kyq jd a.out t,styap compile dy akan d'renew trz codingan lama menjadi yg latest...
jd supaya gk muncul a.out, compilenya kyq kyq gne bro
Quote:$ g++ namacoding.cpp -o namacoding
hmm
Visit this user's website Find all posts by this user
Quote this message in a reply
11-01-2010, 05:20 PM
Post: #9
RE: compile dan run c++ d'linux
Owh gtuh Yah kak...
Makasih Yah kak informasinya...

ntar ajarin saya jg coding yo Uda.... hmm
Visit this user's website Find all posts by this user
Quote this message in a reply
11-21-2010, 02:25 PM
Post: #10
RE: compile dan run c++ d'linux
keren bro,,slma ne ane cuma bisa maeninnya di wind*s
niceeeeee SHARE
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Sekilas VFS pada linux kernel 2.4 ev1lut10n 1 70 01-21-2012 09:16 PM
Last Post: ketek
  IOCTL Programming Under Linux Kernel 2.6 ev1lut10n 3 234 11-25-2011 01:01 PM
Last Post: ketek
Heart Mengirim comand CUSD ke modem GSM dengan C (GNU/Linux) melati 4 554 06-05-2011 05:05 PM
Last Post: melati
  TCP Socket Programming dengan Bahasa C (Linux) mywisdom 8 1,273 04-20-2011 01:16 AM
Last Post: mywisdom
  Penguji daur hidup linux worm mywisdom 3 832 09-12-2010 11:25 PM
Last Post: mywisdom
  Memahami process info pseudo-filesystem di linux mywisdom 0 407 07-18-2010 04:14 PM
Last Post: mywisdom

Users Browsing
1 Guest(s)


Stop SOPA/PIPA | Discuss !