#include <iostream>
using namespace std;
class VS
{
public:
VS(int h=10,int w=12,int l=15):height(h),width(w),length(l){}//括号里用逗号
int v();
int s();
int input();
private:
int height;
int width;
int length;
};
int VS::v()
{
float v;
v=height*width*length;
return v;
}
int VS::s()
{
float s;
s=(height*length+height*width+width*length)*2;
return s;
}
int VS::input()
{
cin>>height>>width>>length;
return 0;
}
int main()
{
VS a[5]={VS(1,2,3),VS(4,5,6),VS(7,8,9)};
a[4].input();
cout<<"长方体1的体积:"<<a[0].v()<<"表面积:"<<a[0].s()<<endl;
cout<<"长方体2的体积:"<<a[1].v()<<"表面积:"<<a[1].s()<<endl;
cout<<"长方体3的体积:"<<a[2].v()<<"表面积:"<<a[2].s()<<endl;
//cout<<"长方体4的体积:"<<a[3].v()<<"表面积:"<<a[3].s()<<endl;
cout<<"长方体5的体积:"<<a[4].v()<<"表面积:"<<a[4].s()<<endl;
return 0;
}