CodePudding user response:
Don't quite understand your paperIt is commonly defined in such a structure
Struct Point ()
{
Int x;
Int y;
} Point
Public Point Opoint;
Each class instantiation of the round object circle
Has circle (circle) point) x, circle, point. Y)
If the trouble, direct
The class circle {
Int x, y, r;
Public circle (int a, b int, int) c
{
X=a;
Y=b;
C=r;
}
Then
Circle c=new circle (y center coordinates x, the center of the circle, circle radius);