CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - BBEEE
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - BBEEE - List
[
Mathimatics-Numerical algorithms
]
bbeee
DL : 0
定义并实现一个整数集合类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.
Date
: 2025-07-04
Size
: 1kb
User
:
杨锋
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.