CFraction.h :
#ifndef hFraction
#define hFraction
#include <iostream>
using namespace std;
class CFraction
{
private :
long num;
long denom;
public :
CFraction();
CFraction(const CFraction & org);
CFraction(long,long);
CFraction(long);
~CFraction();
void SetFrac(long pl_num, long pl_denom);
void SetNum(long pl_num);
long get_num() const;
long get_denom() const;
CFraction simplif();
CFraction& operator = (const CFraction & org);
CFraction& operator += (const CFraction frac);
};
ostream & operator << (ostream & out, const CFraction & org);
CFraction operator + (CFraction & frac1,CFraction & frac02);
const CFraction operator * (const CFraction & frac1,const CFraction & frac02);
bool operator < (const CFraction & frac1,const CFraction & frac02);
#endif