Code from in-class List ADT example

CSE 143
Summer 1998

After thinking about my code for a little while, and based on comments during class, I worked out a second version which is somewhat more elegant. I present both versions here. Note that the only file that changed it list.cpp, a testimony to the encapsulation provided by classes.

I also provide a sample client program, which simply reads a list of integers in from the user and prints them back out in order.

Version 1 (as discussed in lecture)

Version 2 (as modified by me)


cse143-webmaster@cs.washington.edu