I got everything implemented and set to finish. However, I have no clue how to implement the bool positive data member in the Function class. Does anyone have any idea? Thanks in advance!
This is probably the way you want to do it - make sure that everything is positive, and set the 'positive' flag based on other things. For example, if you subtract a Fraction and it becomes negative, set the numerator to be positive again and set the 'positive' flag to false. When multiplying, set the 'positive' flag to be something like this->positive = (this->positive == other.positive);. And so on. hope this helps!