#include <iostream>
using namespace std;
struct Box
{
public:
Box(int h,int w,int len) //声明带参数的构造函数
{
height=h;
width=w;
length=len;
}
int volume();
private:
int length;
int width;
int height;
};
int Box::volume()
{
return (len
using namespace std;
struct Box
{
public:
Box(int h,int w,int len) //声明带参数的构造函数
{
height=h;
width=w;
length=len;
}
int volume();
private:
int length;
int width;
int height;
};
int Box::volume()
{
return (len