#include <iostream>
#include "rational.h"
using std::cout;
int main() {
CRational a(2, 8);
CRational b("3/4");
CRational d("2");
cout << a << endl;
cout << a + b << endl;
cout << d - a << endl;
return 0;
}
1/4
1
7/4
1/4 + 1/4
3 + 6/2
6/8 + 6/24
the running result should look like
1/2
6
1