#include #include class point { private: int x;int y; public: float distance() //类的成员函数 { return sqrt(x*x+y*y); } point(int a,int b) //类的构造函数 { cout<<"构造函数被调用"<