// rational.cc  P. Conrad CISC181 Spring 2006
// Stub functions for a rational number class
// Can be used with testRational.cc to do test-driven development

#include "rational.h"

Rational_C::Rational_C ()
{
  // @@@ For you to fill in
}


Rational_C::Rational_C (int theNum, int theDenom)
{
  // @@@ For you to fill in

  reduce(); // this will call your private member function

}

void Rational_C::setNum(int theNum)
{
  // @@@ for you to fill in

  reduce(); // this calls the private member function
}


void Rational_C::setDenom(int theNum)
{
  // @@@ for you to fill in

  reduce(); // this calls the private member function
}

  
int Rational_C::getNum() const
{
  // @@@ for you to fill in

  return 1; // @@@ required for stub--remove when function complete

}

int Rational_C::getDenom() const
{
  // @@@ for you to fill in

  return 1; // @@@ required for stub--remove when function complete
}

void Rational_C::reduce() 
{
  // @@@ for you to fill in
}

int Rational_C::gcd(int a, int b) const
{
  // @@@ for you to fill in

  return 1; // @@@ required for stub--remove when function complete
}




