I've been working through "Data Structures with C++" by D.S. Malik and am having a problem with some of the source provided with the book while trying to understand the linked list. I do understand the concept of the linked lists, but I was trying out the examples without success. I have looked for errata and found nothing.
I'm receiving errors "'first' was not declared in this scope", "'last' was not declared in this scope" and "no post-increment operator for type". All of these variables are protected variables of a base class "linkedList.h" and are used in a derived class "orderedLinkedList.h".
This leads me to believe there is a problem with inheritance, but moving them to "public" did not yield any better results.
Any assistance would be greatly appreciated.
Below are three files included with the books source files, unmodified: