compiling C++ in terminal code example Example: terminal compile c++ g++ -o file file.cpp //or file.c