#include <iostream>
using namespace std ;
struct box
{
char maker[40] ;
float height ;
float width ;
float length ;
float volume ;
};
void show_box(box pa) ;
void set_volume(box *pb) ;
int main()
{
struct box b1 ={"Tony",1.5,2.5,3,0} ;
set_volume(&b1) ;
show_box(b1) ;
return 0;
}
void show_box( box pa)
{
cout<<pa.maker<<endl ;
cout<<pa.height<<endl ;
cout<<pa.width<<endl ;
cout<<pa.length<<endl ;
cout<<pa.volume<<endl ;
}
void set_volume(box *pb)
{
pb->volume=pb->height*pb->length*pb->width ;
}