You need finish function.
Require knowledge:
1.Know set operations:include
intersection(交集)
union(并集)
the complement of B with respect to A(B对A的补)
symmetric difference(对称差)
1.copy constructor
2.overload
Require task:
1.Define a copy constructor
Require knowledge:
1.Know set operations:include
intersection(交集)
union(并集)
the complement of B with respect to A(B对A的补)
symmetric difference(对称差)
1.copy constructor
2.overload
Require task:
1.Define a copy constructor
2.Overload four operators
重点:
1.拷贝构造函数
2.学会利用已经写出来的函数 ⁄(⁄ ⁄•⁄ω⁄•⁄ ⁄)⁄.
3.想利用*this的时候可以创建一个新的Object指向它,就像题中的Set newSet(*this)这样w
main.cpp
Set.hpp
my answer