#include <iostream>
class Box {
public:
Box(int length = 10, int width = 10, int height = 6)
: _length(length), _width(width), _height(height) {
std::cout << "构造Box " << _length << " " << _width << " " << _height << '\n';
}
~Box() {
std::cout << "析构Box " << _length << " " << _width << " " << _height << '\n';
}
int volume() const { return _length * _width * _height; }
private:
int _length;
int _width;
int _height;
};
int main() {
int length, width, height;
std::cin >> length >> width >> height;
Box box1(length, width, height);
Box box2;
std::cout << "The volume of box1 is" << box1.volume() << '\n';
std::cout << "The volume of box2 is" << box2.volume() << '\n';
return 0;
}