C++ in Linux
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu Jul 12 17:46:01 EEST 2001
Christos Lavranos <chlavran at yahoo.co.uk> writes:
> Kalhmera paidia!
>
> Mhpws tha mporousate na me plhroforhsete pws mporw na
> grapsw ena programma se C mesw Linux kai pws meta
> mporw na to kanw Compile..Xerw p.x oti me gcc kaneis
> compile kai oti to vim yposthrizei glwsses programmatismou!!Eyxaristw
C h C++ ?
Mperdemena mas ta les.
Telos pantwn... Xrhsimopoihse opoio editor thes, kai sose se ena arxeio ton
kwdika sou. P.x. bale sto lala.cc to ejhs:
// lala.cc
// My first C++ program in Linuc.
#include <iostream.h>
#include <iomanip.h>
class Hello {
public:
Hello (void) {
};
void greet (void) {
cout << "Hello C++ world." << endl;
};
};
int main (void) {
Hello *hi;
hi = new Hello();
hi->greet();
return 0;
}
Metaglottise to grafontas:
% c++ lala.cc
Kai treje to apotelesma:
% ./a.out
Hello C++ world.
Gia perissoteres leptomereies, mallon prepei na diabaseis to manual tou GCC.
-giorgos
More information about the Linux-greek-users
mailing list