( Modify the Rational class) Rewrite the subscript operator function in the Rational class in Listing, RationalWithOperators.cpp to throw a runtime_ error if the index is not 0 or 1.
Listing RationalWithOperators.cpp





We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.