#include #include //包含头文件 class point { private: int x;int y; public: float distance() //类的成员函数 { return sqrt(x*x+y*y); } point(int a=2,int b=3) //默认参数的构造函数 { x=a;y=b; } }; void main() { point A; //全部使用默认值 point B(7); //只取一个默认值 point C(4,6); //不取默认值 cout<