Run the built program typing (I used the second command and created main.exe file)
./main.exe:
Note: in my example I used the following code:
#include <iostream.h>
int main(void)
{
cout<<"Hello\n";
return 0;
}
For your testing I'd suggest using a more sofisticated example:
#include <iostream.h>
int main(void)
{
int a, b;
char c;
cout<<"Enter the first number a = ";
cin>>a;
cout<<"Enter the second number b = ";
cin>>b;
cout<<"You entered:\n a = "<<a<<"\n b = "<<b<<"\n";
cout<<"The ir sum is a+b = "<<a+b<<"\n";
cout<<"Type 'Q' and press enter to quit\n";
cin>>c;
return 0;
}