#ifndef __SLOTLIST_H__ #define __SLOTLIST_H__ #include struct Slot { int size; char *contents; int usage; Slot(int sz); char operator[](int i); void reset(); int insertChar(char ch); }; class Slotlist { public: Slotlist(int sls, int size); ostream& printTop(ostream& os, int leftMargin); ostream& printLeftRow(int row, ostream& os, int leftMargin); ostream& printRightRow(int row, ostream& os); ostream& printBottom(ostream& os, int leftMargin); void reset(); bool insertChar(char ch, int i); int max(); private: Slot **data; int maxSlotUsage; int slots; }; #endif