摘要: 第一种 写里面 class Rectangle{ public: Rectangle(int a = 10, int b = 10):length(a),width(b),area(a*b){} private: double length, width, area; }; 写外面 class Re 阅读全文
posted @ 2020-03-17 15:24 philo_zhou 阅读(470) 评论(0) 推荐(0) 编辑