#include <iostream>
#include <cmath>
using namespace std;
class rational
{
public:
rational();
rational add(rational);
Type: Posts; User: slow++
#include <iostream>
#include <cmath>
using namespace std;
class rational
{
public:
rational();
rational add(rational);
actually it is my first day in this website i dont really know what kind of help should i expact
member functions add, sub, mul, div that perform basic arithmetic on rational numbers
member functions add, sub, mul, div that perform basic arithmetic on rational numbers
A constructor that accepts a pair of integers corresponding to the numerator and denominator of the rational number. Thus passing in a numerator of 3 and a denominator of 4 would create an object...