// // header file for the set implementation project // Project design by Mikhail Nesterenko // // #include // using namespace std; #ifndef SET_H #define SET_H const int MAX_SETSIZE=20; class Set{ public: // set arithmetic functions, implemented as friends friend Set intersection(const Set& setA, const Set& setB); friend Set setunion(const Set& setA, const Set& setB); friend Set complement(const Set& setA, const Set& setB); // set manipulation functions void add(int); // adds element to the set void remove(int); // removes element from the set bool includes(int) const; // checks if element is in the set Set(); // void constructor void printSet() const; // prints comma separated list of // elements of the set private: int setarray[MAX_SETSIZE]; int setsize; }; #endif // SET_H