Compilation
In Dev-C++, use the funny little multicoloured squares button to compile (or press F9). You should get a message saying there were no errors. Then, use the white box with an orange line to run the program (or press F10). Or just run the generated .exe file from the command prompt like a normal program. If you want to compile and run at the same time, use the button with the multicoloured squares and the orange line (or press F11).
If we don't want our program to instantly close once it's finished so we can't even see what it did...
We can use
system("PAUSE");or
cin.ignore();BEFORE the return statement in the main function.