Okay if its compiled you should now have a new program in the directory, to compile it simply type
./programname
You need the ./ since the current directory isn't allowed to execute programs ( security problems if you do ).
The program isn't 100% accurate for c++
Code:
#include <iostream>
using namespace std;
Would be better, I'm really just being picky, as both ways are legal c++, but what I've typed is more standard compilant, which is usually a good habit to get into.