Computer Science 2:
Tuesday, September 23, 2003
These files show the linked list example discussed in class today: Node.h, Node.cxx, List.h, List.cxx, main.cxx, and a Makefile.
Note added later: Those files alsocontain the examples discussed on Thursday (mainly the remove function).
Compared to the stuff written in class today I added an output operator so that we can see that it all works.
The code as posted has a subtle bug in the sorting routine. To be discussed.
|© 2003 Karl Winklmann||3:08 PM, Tuesday, December 16, 2003|