编写了一个圆类,其中设了一各圆心字段,用的是数组,现在想将数组的元素作为x,y坐标输出,如何编写


定义一个数组来做呗,像这样:
(double x, double y)[] center = { (2, 3), (4, 5) };
Circle c = new Circle(5, center);
Console.WriteLine(c.ToString());
Console.WriteLine($"周长: {c.Circumference()}, 面积: {c.Area()}");