文件名称:YCArray
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:4.98kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/**
* 动态数组的模板类
* 1.支持字符索引
* 2.方便的添加删除修改任意一项
* 最后更新 2004-8-9 yzh
**1.优化了字符索引的运作方式,使用数组存储
**2.重写了底层数据的存储,将连续性的存储方式改为了非连续,
*** 从而很好有效地支持了“引用”,并且让数据的删除增加变的更为快速
* 用法如:
* YCArray<int,int> test
* test.Add(\"Number2\",4)
* test.Add(\"Number1\",2)
* printf(\"%d %d\",test[\"Number1\"],test[\"Number2\"])
* 显示:
* 2 4
*******
*******
History:
2004-11-19
修改了析构函数,解决了索引没有释放的bug
**/-/ ** * dynamic array template class * 1. Support characters Index * 2. Add convenience to delete arbitrary * a final update 2004-8-9 yzh ** 1. Character Index optimized mode of operation, the use of storage arrays ** 2 . a rewrite of the underlying data storage, storage continuity conversion of non-continuous, and thus good *** effective support to the "quote", and let the data changed to delete the more rapid * usage such as : * YCArraylt; int, intgt; test * test. Add ( "Number2", 4) * test.Add ( "Number1", 2) * printf ( "% d% d", test [ "Number1"] test [ "Number2"]) * Display : * * 2 4 ****** ******* History : 2004-11-19 revised the destructors, the index did not address the release of bug ** /
* 动态数组的模板类
* 1.支持字符索引
* 2.方便的添加删除修改任意一项
* 最后更新 2004-8-9 yzh
**1.优化了字符索引的运作方式,使用数组存储
**2.重写了底层数据的存储,将连续性的存储方式改为了非连续,
*** 从而很好有效地支持了“引用”,并且让数据的删除增加变的更为快速
* 用法如:
* YCArray<int,int> test
* test.Add(\"Number2\",4)
* test.Add(\"Number1\",2)
* printf(\"%d %d\",test[\"Number1\"],test[\"Number2\"])
* 显示:
* 2 4
*******
*******
History:
2004-11-19
修改了析构函数,解决了索引没有释放的bug
**/-/ ** * dynamic array template class * 1. Support characters Index * 2. Add convenience to delete arbitrary * a final update 2004-8-9 yzh ** 1. Character Index optimized mode of operation, the use of storage arrays ** 2 . a rewrite of the underlying data storage, storage continuity conversion of non-continuous, and thus good *** effective support to the "quote", and let the data changed to delete the more rapid * usage such as : * YCArraylt; int, intgt; test * test. Add ( "Number2", 4) * test.Add ( "Number1", 2) * printf ( "% d% d", test [ "Number1"] test [ "Number2"]) * Display : * * 2 4 ****** ******* History : 2004-11-19 revised the destructors, the index did not address the release of bug ** /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
YCArray.h
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.