Here is the website for the assignment I am working on:
http://view.samurajdata.se/rsc/5c1dd0b4/
Here is the website for my header file (MixedExpression.h):
http://ideone.com/oJ6mI8
Here is the website for my library source file (MixedExpression.cpp):
http://ideone.com/RSrshS
Here is the website for my calculator client file (Calculator.cpp):
http://ideone.com/U5F2O8
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?