文件名称:YCArray
- 所属分类:
- Internet/网络编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 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 ** /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 103244816ycarray.rar 列表 YCArray.h