#ifndef _RATIONAL_H
//#if !defined(_RATIONAL_H)
#define _RATIONAL_H
class RationalNumber
{
public:
RationalNumber();
RationalNumber(int,int);
RationalNumber(double);
RationalNumber(RationalNumber &); // copies an object that already exists
~RationalNumber();
int getNumerator();
int getDenominator();
void add(RationalNumber &);
void add(RationalNumber &,RationalNumber &);
void sub(RationalNumber &);
void sub(RationalNumber &,RationalNumber &);
void mul(RationalNumber &);
void mul(RationalNumber &,RationalNumber &);
void div(RationalNumber &);
void div(RationalNumber &,RationalNumber &);
bool isEqual(RationalNumber &);
bool isLessThan(RationalNumber &);
private:
int num,den;
};
#endif
// ensures that its only ran once
this is where im at so far...
Thanks