【单选题】class Point { public: Point(int x, int y); Point(Point &p); ~Point(); void move(int newX , int newY ); void print(); private: int x,y ; }; Point 类的定义如上,则以下对数组 a 的定义正确的是( )
B.
Point A[2]={Point(1,2),Point(3,4)};
C.
Point A[2]={Point(1,2)};
D.
Point A[2]=Point(1,2);
【单选题】有以下程序: #include<iostream> #include<math> using namespace std; class point { private: double x; double y; public: point(double a,double B) { x=a; y=b; } friend double distance (point a,point B) ;