Problem with deleteNode function in an ordered linked list
Hi, I am learning about linked lists in C++ and attempted to write a program using classes described in a book. The unordered linked list functions seems to run fine, but the ordered linked list seems to have a problem with the deleteNode function. One compiler I run it through encounters a runtime error, but does not output any error messages. I'd appreciate if somebody could point out the issue that's causing the error and apparently halting the program. https://code.sololearn.com/cZI6zP4h4Asw/#cpp deleteNode function prototype //Line 413 deleteNode function definition //Line 493-544 (Side note: Was running into issues implementing without specifying 'this' for 'first', 'last', and 'count' member variables. I read I needed to specify 'this' for the compiler to understand I was referring to the object of the derived class versus the base class. Hence, you'll find all the member variables of the orderedLinkedList class are preceded by this->. If you know a better workaround, I'm all ears as I feel this impairs readability (but does allow the program to run!)).