Trouble with overloaded operator<< function in circular list
I am working on a program that reads in a polynomial as input, outputs the polynomial, evaluating the polynomial, and adding two polynomials while maintaining a circularly linked list. An analysis using gdb revealed that there is a problem with the Next() member function of CircListIterator class template. What could I be doing wrong with Next()? The code and the output are reproduced below. I apologize for the long code.