文件名称:bbeee
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:788byte
-
已下载:2次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
定义并实现一个整数集合类int_set,集合类中cur_size表明当前集合中有几个整数,集合中最多含max_size个整数,存放集合元素的数组是动态的。要求提供的方法有:
(1)增加一个整数到集合中;
(2)从集合中去掉一个元素;
(3)判断一个元素是否在集合中;
(4)重载<<运算法,输入集合;重载>>运算符输出集合;
(5)分别实现集合的交、并、差运算。
-Defined and implemented a set of integers class int_set, a collection of classes cur_size indicate that the current collection there are several integers, set up to contain max_size integers and store the collection elements of the array is dynamic. Requested methods are: (1) Add a integer to set (2) remove an element from the collection (3) to determine whether an element in the collection (4) overload " " algorithm, enter the collection overloaded " " a collection of operator outputs (5), respectively to achieve cross-collection, and, poor operation.
(1)增加一个整数到集合中;
(2)从集合中去掉一个元素;
(3)判断一个元素是否在集合中;
(4)重载<<运算法,输入集合;重载>>运算符输出集合;
(5)分别实现集合的交、并、差运算。
-Defined and implemented a set of integers class int_set, a collection of classes cur_size indicate that the current collection there are several integers, set up to contain max_size integers and store the collection elements of the array is dynamic. Requested methods are: (1) Add a integer to set (2) remove an element from the collection (3) to determine whether an element in the collection (4) overload " " algorithm, enter the collection overloaded " " a collection of operator outputs (5), respectively to achieve cross-collection, and, poor operation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bbeee.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.