C++: Reflect recent gorays changes

There are trivial changes. Basically aim to the same result as Go's.

Note: I didn't implement fixed output to 'render.ppm'. I think filename fixing is not a good idea. Because it is not convenient for running multiple languages from same directory.