【单选题】如有以下程序段:struct POINT{ public double x;//横坐标 public double y;//纵坐标}struct RECTANGLE{ public POINT[] p;}RECTANGLE r;则对结构体变量r的操作正确的代码段是()。
A.
r.p = new POINT[4]; r.p[0].x=0; r.p[1].y = 2;
B.
r.p ={new POINT(2.0,3.1), new POINT(2.5,3.8), new POINT(5.0,8.1)};
C.
r.p = new POINT[4]; r.p.x=0; r.p.y = 2;
D.
r.p = new POINT[4]{{1,1},{2,2},{3,3},{4,4}};