Understanding a Simple C++ Program