已知有如下类Point的声明: class Point { int x,y; public: Point(int px=0,int py=0); Point(Po
已知有如下类Point的声明: class Point { int x,y; public: Point(int px=0,int py=0); Point(Point &p); }; Point::Point(int px,int py):x(px),y(py) { cout<<’(’<> <<","<> <<’)’; } point::point(point &p) { x="p.x;" y="p.y;"> <<","<> <<’)’; } 若执行以下语句,将会输出 。 point p1(10,5),p2(p1),*pt; pt="new" point; delete pt;>