Can anyone tell me why the overloaded += operator is not advancing through the linked lists if the lists have a different number of nodes?
I am trying to figure this out. I need to get this done pronto so any help is appreciated.
Here is the outline of my assignment:
Define and implement a class named Polynomial that has operators for creating a polynomial, reading a polynomial, and adding and subtracting polynomials. Its partial declaration is given below (you can add some other auxiliary member functions to the class, if necessary).
// default constructor: create an empty polynomial
// copy constructor: use the content of p1 to create a polynomial
Polynomial(const Polynomial& p1);
// release dynamic memory related to the polynomial
// overloaded assignment operator
// assign the content of p1 to a polynomial
void operator=(const Polynomial& p1);
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.