compile command ?
I am using Linux , and i teached myself C and Java . Now , I want start C++ , but I don't know the compile command .for example in C i use cc program.c , and then i run it with a.out, in Java i compile it with javac and run it with java programname.
How is this in C++,(I bought the book of Stroustrup,but it isnt explained there.
You have to install g++. Once that is installed, use the command "g++ -o program program.cpp" without the quotes. You can then execute the program by typing "./program" again, without the quotes.