The best is to try the code yourself. Download Visual Studio and create a project and copy that code into it.
This
Learn C++ tutorial has also some good chapters about the usage of Visual Studio and its integrated debugger.
Have a lot of fun by reviewing the first code in your career! Good luck! :-)