compile c++ program

C++
$ g++ -o <name-you-want-to-give> source.cpp
$ ./myprogram
Source

Also in C++: