c++入门教程–-20C++ 类成员函数 class Box { public: double length; // 长度 double width; // 宽度 double height; // 高度 double getVolume(void) //在类里面可以有自己的函数