#include <iostream.h> 
const double pi = 3.14159;
class box_car {public: double height, width, length;};
class tank_car {public: double radius, length;};  ///
double volume (box_car b) {
  return b.height * b.width * b.length;
}
double volume (tank_car t) {                      ///
  return pi * t.radius * t.radius * t.length;     ///
}                                                 ///
main ( ) {
  box_car x; x.height = 10.5; x.width = 9.5; x.length = 40.0;
  tank_car y; y.radius = 3.5, y.length = 40.0;
  cout << "The volume of the box car is " << volume (x) << endl
       << "The volume of the tank car is " << volume (y) << endl;
}
