9.2 䳤߷ֱΪ (1)12,20,25(2)10,14,20ǵһڶĳôĹ캯
#include <iostream>
using namespace std;
class Box
{public:
Box(int,int,int);        //Ĺ캯
int volume( );            //ĺ
 private:
int height;
int width;
int length;
};
BoxBox(int h,int w,int len)   //ⶨĹ캯
{height=h;
width=w;
length=len;
}

int Boxvolume( )                //ĺ
{return(height*width*length);
}

int main( )
{Box box1(12,25,30);           //box1ָbox1ߵֵ
cout<<The volume of box1 is <<box1.volume( )<<endl;
Box box2(15,30,21);           //box2ָbox2ߵֵ
cout<<The volume of box2 is <<box2.volume( )<<endl;
return 0;
}