#include #include class point { private: int x;int y; public: float distance() //类的成员函数 { return sqrt(x*x+y*y); } point(int a,int b) //构造函数 { x=a;y=b; } point(const point &p) //拷贝构造函数 { x=2*p.y;y=2*p.x; } }; void main() { point A(4,5); //调用构造函数 point B(A); //调用拷贝构造函数 cout<