// $Id$

// Name: Gary T. Leavens
// Section: all

#include "ratrep.h"
#include "ratrep2.h"
#include "Rat.h"

int main(int argc, char *argv[]) {
  Rat<ratrep> & half = *new Rat<ratrep>(1,2);
  Rat<ratrep> & threefourths = *new Rat<ratrep>(3,4);
  cout << "1/2 + 3/4 = " << half.add(threefourths) << endl;
  Rat<ratrep2> & half2 = *new Rat<ratrep2>(1,2);
  Rat<ratrep2> & threefourths2 = *new Rat<ratrep2>(3,4);
  cout << "1/2 + 3/4 = " << half2.add(threefourths2) << endl;
}
