#include #include class point { private: int x;int y; public: float distance() //类的成员函数 { return sqrt(x*x+y*y); } point(int a,int b=3) //只要一个默认值的构造函数 { x=a;y=b; } }; void main() { point A(1); //使用默认值 point B(4); //使用默认值 cout<