SortedSet

所属分类:数据结构
开发工具:Visual C++
文件大小:3KB
下载次数:18
上传日期:2006-05-01 13:19:20
上 传 者Icewaver
说明:  本程序用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\StoredSet.cpp (2103, 2006-04-22)
SortedSet\Main.cpp (775, 2006-04-22)
SortedSet\StoredSet.h (859, 2006-04-13)
SortedSet\SortedSet.dsw (541, 2006-04-12)
SortedSet\SortedSet.dsp (4445, 2006-04-12)
SortedSet (0, 2006-04-12)

近期下载者

相关文件


收藏者