定义一个元索类型为int、元素个数不受限制的集合类Set.除了定义一些必要的函数外,还定义具有下
●bool IsEmpty():判断集合是否为空;
●int size():返回元素个数:
●bool IsElement(int e) const: 判断e是否属于集合:
●bool IsSubset(const Set&. s)const: 判断s是否包含于集合:
●bool IsEqual(const Set&. s)const: 判断集合是否相等;
●Set&. insert(int e):将e加入到集合中;
●Set union(const Set&. s) const:求集合的并:
●Set intersection(const Set& s) const:求集合的交;
●Set difference(const Set& s) const: 求集合的差。