Listing 4

ostream &operator<<(ostream &os, rational r)
   {
   return os << '(' << r.num << '/' << r.denom << ')';
   }

// End of File