// sample code for a set of strings // uses partially filled array #ifndef STRINGSET_H #define STRINGSET_H #include using namespace std; class StringSet { public: StringSet(); StringSet(const StringSet &other); ~StringSet(); bool contains(string item) const; void add(string item); void remove(string item); bool operator== ( const StringSet &other ) const; private: static const int MAX_COUNT=100; int count; string *A; friend ostream &operator<< (ostream &, const StringSet &myStringSet); }; #endif