学习c++语言中 Set容器构造函数的简单使用
1、如图所示,set<int>first,可以创建一个空的set容器

2、第二种构造函数为:范围构造函数。range constructor,构造一个在[first巳呀屋饔,last]范围内的元素的容器。如图所示。

3、如图所示,运行结果正确

4、第三种:为复制构造函数。copy constructorConstructs a container with a copy of each of the elements inx.

5、运行结果显示,通过复制构造函数,third对象成功的建立

6、还可以通过迭代器范围进行构造。如图所示
