|
|
c m s c 214
f a l l 2 0 0 1 |
Debug this, make sure it sorts. Pick any sorting algorithm. Make sure it appears in your README file.
bool Team::add( const Player &player )
{
team.add( player ); // team is a SortedList object
}
Also, ask yourself if you really need copy constructors,
assignment operators, and operator= (no, you don't).
The only major change is to handle the new iterators. I would suggest writing methods called first, cfirst, etc. in Team and returning the corresponding iterators in SortedList. The alternative is to return the SortedList by reference (not a great idea, but oh well) and get the iterators directly.