C++ code for illustrating Polygon Computations