|
|
c m s c 214
f a l l 2 0 0 1 |
Note: Don't submit any driver files (i.e., any files that use "main()"), other than main.cpp.
Those of you who have worked ahead realize there's a problem with SortedList. Either it can store a list of pointers or a list of objects, but not both. Thus, if PlayerList stored Player * (Player pointers), then you would have had to modify SortedList to handle pointers.
Leave the public interface of ObjSortedList and ArrayList alone. I want to test these classes, and if you modify them (you may add private methods, but don't change the public ones), then they may fail to compile, and therefore, you would lose points on the project.
#include <vector> #include <algorithm>in all files submitted. Points will be deducted if you are still using STL vector or STL algorithms (such as sort).