Question: How do you do this? struct node int coeff, exp; node next; class e private: node begin, last;// begin points to the first node and
struct node int coeff, exp; node "next; class e private: node begin, "last;// begin points to the first node and last points to the last node public: el: re(l: void assign(int, int): printequation(); string search(int expl; bove declaration was used to create polynomial equation as a part of the assignment. Your task now is to the code for BOTH main function and search member function. The main function should declare an object first and then write a COMPLETE CODE to create a link list with 5 no function and out put the result. Write a COMPLETE code for the search member function. The purpose of this function is to search whether the given exponent (exp) is in the list or not. ifit is found return "FOUND" else return "NOT FOUND" des using the assign member function. Also write a calling statement to the search member
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
