/* File: main1.C
   Use the Box class.
*/

#include <stdio.h>
#include "box1.h"

main() {
   Box b1, b2, b3 ;
   float volume ;

   /* call "member function" b1 with b1. */
   printf("b1: ") ;
   b1.identify() ;

   printf("b2: ") ;
   b2.identify() ;

   printf("b3: ") ;
   b3.identify() ;

   printf("\n") ;

   volume = b1.volume() ;
   printf("b1 volume = %f\n", volume) ;
   b1.grow() ;
   b1.identify() ;
   volume = b1.volume() ;
   printf("b1 volume = %f\n", volume) ;

   printf("\n") ;
   
   volume = b2.volume() ;
   printf("b2 volume = %f\n", volume) ;
   b2.shrink() ;
   b2.identify() ;
   volume = b2.volume() ;
   printf("b2 volume = %f\n", volume) ;
}
