Programming in C++

In linux, programming in C++ invariably means you're using the g++ compiler, and compiling and running C++ programs is virtually identical to what you saw with C programs.

Assuming you have the trivial program in hi.C:

#include "iostream.h"

int main()
	cout << "hi there\n" ;
you can compile this program and run the resulting executable in one of three ways:
$ g++ hi.C
$ g++ hi.C -o hi
$ make hi