//  File: ccmain.C
//
//  Use the ColorCube class.


#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>

#include "colorcube.h"

main() {
   ColorCube c1 ;                   // use default constructor
   ColorCube c2(1.2, ColorCube::blue) ; // use alternate constructor

   Box::report() ;

   cout << "\nIdentify:" << endl ;
   cout << "c1: " ;
   c1.identify() ;

   cout << "c2: " ;
   c2.identify() ;

   if (compare(c1,c2) < 0) {
      cout << "Cube c1 fits inside cube c2" << endl ;
   }

   // Member functions of Box class still accessible because
   // ColorCube is a public derivation of Cube which is a
   // public derivation of Box.

   cout << "\nGrow c1:" << endl ;
   c1.grow() ;
   c1.identify() ;

   Box::report() ;
}
