Declare a point class consisting of 2 coordinates and an input function, and a polygon layer consisting of the number of vertices and point pointers, with methods to input vertices, calculate perimeter, and calculate polygon charge. Write a main function to simulate the program

Source: Windows Questions C++