#include #include class point //声明类point { private: int x;int y; public: float distance() //成员函数 { return sqrt(x*x+y*y); } void init(int a,int b) { x=a;y=b; } }A; //定义类的对象A void main() { point B; //定义类的对象B A.init(3,4); //调用类的函数 B.init(6,8); cout<