文件名称:SortedSet
介绍说明--下载内容均来自于网络,请自行研究使用
本程序用VC++完成
定义类模板SortedSet (包括方法的实现) ,即元素有序的集合,集合元素的类型和集合元素的最大个数可由使用者确定。要
求该类模板对外提供以下三种操作:
insert:加入一个新的元素到合适的位置上,并保证集合元素的值不重复;
get:返回比给定值大的最小元素的地址。若不存在,返回-1;
del:删除与给定值相等的那个元素,并保持剩余元素的有序性。-the completion of procedures with VC SortedSet class template definition (including the method of achieving) that is a collection of elements in an orderly manner, the type of set elements and elements set to the number users can be identified. External demand such templates for the following three operations : insert : to add a new element to the appropriate location, Set elements and ensure that the value of non-repetition; get : return to the setting than the smallest major element of the address. If not, return-1; Del : delete and given that the equal value of the elements, and maintain the remaining elements of the order.
定义类模板SortedSet (包括方法的实现) ,即元素有序的集合,集合元素的类型和集合元素的最大个数可由使用者确定。要
求该类模板对外提供以下三种操作:
insert:加入一个新的元素到合适的位置上,并保证集合元素的值不重复;
get:返回比给定值大的最小元素的地址。若不存在,返回-1;
del:删除与给定值相等的那个元素,并保持剩余元素的有序性。-the completion of procedures with VC SortedSet class template definition (including the method of achieving) that is a collection of elements in an orderly manner, the type of set elements and elements set to the number users can be identified. External demand such templates for the following three operations : insert : to add a new element to the appropriate location, Set elements and ensure that the value of non-repetition; get : return to the setting than the smallest major element of the address. If not, return-1; Del : delete and given that the equal value of the elements, and maintain the remaining elements of the order.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SortedSet
.........\Main.cpp
.........\SortedSet.dsp
.........\SortedSet.dsw
.........\StoredSet.cpp
.........\StoredSet.h
.........\Main.cpp
.........\SortedSet.dsp
.........\SortedSet.dsw
.........\StoredSet.cpp
.........\StoredSet.h