Here is the website for the assignment I am working on:
Here is the website for my header file (MixedExpression.h):
Here is the website for my library source file (MixedExpression.cpp):
Here is the website for my calculator client file (Calculator.cpp):
My question: I got the code in the header file correct. In the library source file, I got the default constructor, GCD(), and printData() functions correct. I am not sure if I got the reduce() and ReadMixedExp() functions correct. I am mostly having trouble with the normal constructor because my teacher wants me to reduce the expression in that which I can't figure out. I am also not sure if I am doing the calculations correctly. In the calculator client file, I don't know if I am using the switch statement correctly. Right now, all I am getting is this output: (0 + 0/1), which is going on in an infinite loop. What do I need to fix, add, or change?