Programming in C++ for Ubuntu 10.04
August 3, 2010 at 10:40 pm
(This post was last modified: August 3, 2010 at 10:40 pm by The_Flying_Skeptic.)
I wrote the code for a simple text output program (hello world). I compiled test.cpp with g++ in the terminal
g++ test.cpp -o test
compiled fine.
ran the file ./test
the program ran fine, displaying "hello world".
how do I write the program or compile the program so that I can click the file and it will run in the terminal?
g++ test.cpp -o test
compiled fine.
ran the file ./test
the program ran fine, displaying "hello world".
how do I write the program or compile the program so that I can click the file and it will run in the terminal?