operator / method

Rat operator /(
  1. Rat other
)

Divides this Rat by other.

Implementation

Rat operator /(Rat other) {
  return Rat(n * other.d, d * other.n);
}