Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compile dan run c++ d'linux
07-30-2010, 12:18 AM
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:$ ./contoh

mga bermanfaat... mewek

tecon-crew | sumatrahacker | hacker-newbie
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);
}

iPhone Screen Protectors
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
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version 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

Forum Jump:


User(s) browsing this thread: 1 Guest(s)