Hello, so far this is the code I have for a rational number calculator but as of right now it is basically just a regular calculator. I need help getting input like 5 / 2 + 1 / 2 then outputting the result as a simplified fraction. So I'm not sure how to implement a function to handle this type of input as well as how to simply and output as a fraction. Then I need to be able to overload the operator but help on the above would be greatly appreciated. Thanks.
I know, but in order to submit the assignment, the program must compile on a linux server for class, so I'll need to use another method than ratio unfortunately.