How to run a c++ program in Linux?

Status
Not open for further replies.

sidra

Full Member level 1
Joined
Apr 5, 2006
Messages
99
Helped
13
Reputation
26
Reaction score
3
Trophy points
1,288
Location
see in yr heart...found it?
Activity points
2,064
run c program

well imnew to linux....very new....can anyone tell me hw to run a c++ program in the linux...i know it's stupid...but help me...
 

run c program

To compile:
g++ -o program program.cpp

to run:
./program
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…