Description: : A round-class Circle, whose members are the center coordinates (x, y) and radius of the circle r, and design constructor (initial value may not be given the initial value), the destructor (you can do nothing, print information only, which means that it is called), set the new value of the member function set () member function to take center coordinates getX (), getY (), take a round the radius of members the function GETR () member function Print Print member values () calculate the area of a circle member function area (). And 10 for the array of objects with such a defined length, the center coordinates (x, y) of each object and the circle of radius r by a random number rand () to generate print (x, y), r and area of each object then the array of objects in accordance with the r value from small to large order, and print sorting each object (x, y), r and area print out and calculate the average of all the objects (x, y), the average r an
To Search:
File list (Check if you may need any files):
1.docx