HELP about C++

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
godjER
Posts: 93
Joined: 29 Jan 2011, 17:19
Location: Yogyakarta
Contact:

HELP about C++

Postby godjER » 03 Feb 2011, 10:35

Agan-agan..
berhubung ane newbie, cara make syntax C++ di Geany/CodeLite beda ya sama di Borland C++? seperti ini :

#include
#include
void main()
{
int a;
a=13;
cout<<a<<endl;
cout<<"a"<<endl;
getch();
}

ga bisa di compile di Geany/CodeLite,
[font:Comic Sans MS] Mohon bimbingan senior2[/font]
User avatar
Soekarmana
Posts: 466
Joined: 23 May 2010, 22:34
Location: Denpasar
Contact:

Re: HELP about C++

Postby Soekarmana » 08 Feb 2011, 23:04

di linux ga ana conio gan dihilangin aja conio ama getch nya ato di komen aja tu
jadinya :

Code: Select all

#include <iostream>
//#include <conio>
void main()
{
int a;
a=13;
cout<<a<<endl;
cout<<"a"<<endl;
//getch();
}
User avatar
BudaSuyasa
Posts: 246
Joined: 22 Nov 2010, 22:04
Location: Denpasar, Indonesia
Contact:

Re: HELP about C++

Postby BudaSuyasa » 09 Feb 2011, 01:30

ehe, ane juga lagi belajar c++. Makin bingung aja nih....
oh ya, jangan lupan using namespace std nya...
User avatar
godjER
Posts: 93
Joined: 29 Jan 2011, 17:19
Location: Yogyakarta
Contact:

Re: HELP about C++

Postby godjER » 09 Feb 2011, 13:43

oke, ta cobane ya..tks
:blush:

Return to “Aplikasi Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests