
Lesson 13-2: Unsorted List
Array-Based Lists | 339
Name __________________________________________ Date _______________________
Section _________________________________________
Use the following declaration on file listWithDuplicates.h for these exercises. Read the
documentation on the member function declarations carefully.
int const MAX_ITEMS = 50;
typedef string ItemType; // Type of each component
// (a simple type or string class)
#include <string>
class ListWithDuplicates
{
public:
ListWithDuplicates();
// Constructor
// Post: Empty list is created.
// Action responsibilities
void Store(ItemType item);
// Pre: The list is not full.
// Post: item is in the ...