HW14: Linked List (2)
-
In the previous homework, many students modified the definition of
CList directly. This implies that, we have 73 versions of "list.h"!
- In this homework, you are required not to modify the definition of
CList, but derive your own CMyList class based on CList.
- Submit the class definition file with filename "hw14-mylist.h". It
should be compiled with list.h and main.cpp successfully.
- The advantage for this style is that, if the teacher releases a new
version of list.h, which provides a different implementation of Print(),
your derived class will inherit that function directly. You don't need
to modify the Print() function in your code.