how to compile and run code c++ in terminal g++ code example
Example: how to compile and run cpp code in terminal
# compile cpp_code.cpp
g++ cpp_code.cpp
# run compiled file
./a.out
# compile cpp_code.cpp
g++ cpp_code.cpp
# run compiled file
./a.out