Created
June 26, 2012 09:06
-
-
Save vcwu/2994575 to your computer and use it in GitHub Desktop.
simplifyTester_actual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fstream simp; | |
| simp.open("simplify_test.txt"); | |
| Poly* pol1 = new Poly(); | |
| for(int i =0; i< 3; i++) | |
| { | |
| term t1(5, 1, 1); | |
| pol1->addTerm(t1); | |
| } | |
| simp << *pol1 << endl; | |
| simp << "Simplifies to: " | |
| << Poly(pol1->simplify()) << endl << endl; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment