CMPU-203: Introduction to Computer Science III

Project #1
Due: Monday, Feb. 4

Part 1

Write a class for a singly-linked list of integers, and a similar class for strings of 20 or fewer characters. Write two programs that use these classes, one to read in a list of numbers, the other a list of strings, and then print them out. You may of course reuse any code you've written previously.

Part 2

Take your classes and turn them into a single template class (if you haven't already). Modify your programs to use it. Then write a third program that can input a list of people, as defined by the person class, and then print them out. The three programs for strings, numbers, and people, should be as identical as possible. (This will be a grading criterion)

Submit a directory containing the following files:

intlist.h       Interface for integer list class
intlist.C       Implementation file for integer list class
main-int1.C     Main file for integer list program
strlist.h       Interface for string list class
strlist.C       Implementation file for string list class
main-str1.C     Main file for string list program
list.h          Interface for list template class
list.C          Implementation for list template class
main-int2.C     Main file for integer list program using template
main-str2.C     Main file for string list program using template
main-person2.C  Main file for person list program using template