Welcome![Sign In][Sign Up]
Location:
Search - BBEEE

Search list

[Mathimatics-Numerical algorithmsbbeee

Description: 定义并实现一个整数集合类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.
Platform: | Size: 1024 | Author: 杨锋 | Hits:

CodeBus www.codebus.net