for dev-C++
1. open the program Dev c++
2. click on the new page add your code here
3. press compile. (the square with the four colors)
done,
I suggest to start of with dev because it is a lot easier to understand compiler
compiling with just 2 buttons and a lot clearer error messages.
switch to visual c++ after finishing your c++ book