#include using namespace std; #include "poly.h" // simple demo of polynomials int main() { Poly p1, p2, p3; p1 = Poly(5,7) + Poly(4,2) + Poly(3,1) + Poly(2,0); p2 = Poly(3,5) + Poly(2,4) + Poly(3,2); cout << "p1 = " << p1 << endl; cout << "p2 = " << p2 << endl; cout << "sum = " << p1+p2 << endl; cout << "p3 = " << p3 << endl; return 0; }