Sorting a Vector of Rational Numbers
- Modify your previous exercise
of CRational vector, so that after reading a vector of rational numbers,
the vector is sorted in descending order.
- For the input
1/2
1/3
1/4
1/5
2/3
2/5
The output should be
2/3
1/2
2/5
1/3
1/4
1/5