Should the polynomial copy constructor set the order of the newly-created polynomial? The other constructors set the order. I believe the order not being set causes problems when I try to print a copied polynomial to the screen. It also causes problems when printing the results of op_Addition() and op_Subtraction() because those functions use the copy constructor.
//"poly" is 2x+3
System::Console::Write(poly->ToString()); //prints "2 x + 3" as expected
//"poly" is 2x+3
Polynomial* copyPoly =
new Polynomial(poly);
System::Console::Write(copyPoly->ToString()); //prints "3" instead of "2 x + 3" but the coefficient matrix is correct
//"poly" is 2x+3
Polynomial* otherAddPoly = Polynomial::op_Addition(poly, 5);
System::Console::Write(otherAddPoly->ToString()); //prints "8" instead of "2 x + 8" but the coefficient matrix is correct
Thank you.