How-to wirte C/C++ on Linux computer ?

v_xxx_v

Baseband Member
Messages
63
hi everyone

i have been using Visual basic on Window, but not sure what to do on linux.

I just installed Linux Centos on my machine yesterday. Ready to start now :). Thank for reading
 
There is no equivelant to visual basic on linux...

use a regular text editor to write the source code and then you can compile using gcc. a free compiler that is available for all versions of any OS...
 
root said:
There is no equivelant to visual basic on linux...

use a regular text editor to write the source code and then you can compile using gcc. a free compiler that is available for all versions of any OS...

thanks

Where do i download gcc ?
 
Chances are you'll already have gcc.

Open Terminal, and type gcc and press enter. If you have it, it'll say something like: "gcc - no input files". Try this with g++ and c++, and you should get the same result, except it'll say g++/c++ - no input files instead of gcc.

Try it.
 
if you'd have typed gcc into google and pressed "i'm feeling lucky" yuo'd have neded up here...

http://gcc.gnu.org/

if you don't have it... download it.
 
first you have to write the source to a file and have the file extention .cpp, then just g++ filename.cpp
 
Back
Top Bottom