Location:
Search - CArray
Search list
Description: 本程序是读文本文档,利用CArray保存文档中的点,继而进行画线,读取文本文档并将其以十进制保存,最后画线.
Platform: |
Size: 37092 |
Author: 周游 |
Hits:
Description: 我们在使用vc进行比较复杂的编程时,经常需要用到复杂的数组结构,并希望能实现动态管理。由于C++并不支持动态数组,MFC提供了一个CArray类来实现动态数组的功能。有效的使用CArray类,可以提高程序的效率。
MFC提供了一套模板库,来实现一些比较常见的数据结构如Array,List,Map。CArray即为其中的一个,用来实现动态数组的功能。
CArray是从CObject派生,有两个模板参数,第一个参数就是CArray类数组元素的变量类型,后一个是函数调用时的参数类型。
我们有一个类 class Object,我们要定义一个Object的动态数组,那么我们可以用以下两种方法
Platform: |
Size: 8813 |
Author: li sheng |
Hits:
Description: 支持动态增长的数组类,源码包提供了完整的实现源码。对于模板类数组容器感兴趣的朋友是个不错的参考。
Platform: |
Size: 11811 |
Author: david |
Hits:
Description: 提出一种用VC ++语言实现的多边形裁剪快速算法。与以往的算法相比,算法中不仅多边形可以是任意的,而且在求 交、并和差的过程中用符号判断代替耗时的乘法运算,采用预处理方法等技术来减少程序的遍历次数,从而加快了计算速度。算法 中用MFC的CObL ist类和CArray类的对象来动态存储数据,大大节约了内存开销,是一种高效的算法。另外,算法编制的软件,已 得到了有效的应用。
Platform: |
Size: 296669 |
Author: foe_exile |
Hits:
Description: /**
* 动态数组的模板类
* 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** /
Platform: |
Size: 5120 |
Author: 叶振华 |
Hits:
Description: C++ Template of Collection, use MFC/ATL/STL (Ex: CArrayT, CListT, CMapT, CQueueT, CStackT)
Platform: |
Size: 11264 |
Author: 顛覆中國 |
Hits:
Description: 动态数组应用实例,简单介绍如何使用动态数组-dynamic array example, a brief introduction on how to use dynamic arrays
Platform: |
Size: 1024 |
Author: 邓江 |
Hits:
Description:
Platform: |
Size: 8192 |
Author: rere |
Hits:
Description: 实现了一个Class for storing any standart bitmaps in array,通过对数组运算来处理bmp图像的源代码。-achieved a Class for storing any standart bitma ps in array, the array of operations to handle bmp image of the source code.
Platform: |
Size: 3072 |
Author: wuming |
Hits:
Description: 系统编程源码: 内存、缓冲区(Memory/Buffer)处理, 本程序实现CArray摸板类的快速排序
-System Programming source: memory, the buffer zone (Memory/Buffer) treatment, this procedure realize摸板class CArray Quick Sort
Platform: |
Size: 18432 |
Author: 孙萍 |
Hits:
Description: A DynamicArray is an array that automatically allocates dynymaic array for the visual basic.net language
Platform: |
Size: 1024 |
Author: megaxoom |
Hits:
Description: 一个类似于VC++ 中的CArray的数组管理源码,可以管理2维数组,并可进行向量的简单计算-A similar VC++ In CArray array management source, you can manage 2-dimensional array, and to carry out a simple vector calculation
Platform: |
Size: 4096 |
Author: zeng rongjia |
Hits:
Description: c和c++动态数组的实现.visual studio 2008下编译通过-c and c++ realize dynamic array. visual studio 2008 under the compiler through
Platform: |
Size: 214016 |
Author: 陈利聪 |
Hits:
Description: 一个类似于微软的_variant_t类,挺好用的
你觉得在VC里 CString,CStringArray,CByteArray,CArray<>,CList<>,CMap<> 还不够你用或用烦了 试试这个吧-Similar to Microsoft s _variant_t a category, you feel very good use in the VC in CString, CStringArray, CByteArray, CArray <>, CList <>, CMap <> is not enough or you tired of you try this
Platform: |
Size: 9216 |
Author: sporder |
Hits:
Description: The class CBitArray behaves like a specialization of the MFC template class CArray. A real specialization is not possible because of a missing simple data type for a bit.
For maximum efficiency the bits are packed into a dynamic array of unsigned longs. You can easily modify the type of the date containing the bits (see typedef ULONG T in the declaration of CBitArray). CBitArray implements all member functions of the MFC class including the operator function [] (both for l-values and r-values).
The private member functions Copylr, Copyrl, and X are derived from the same-named functions of the class bitstring written by P.J. Plauger and are published with permission of the author.
Platform: |
Size: 23552 |
Author: tony Lam |
Hits:
Description: safearray 与 CArray 之间的转换-safearray array
Platform: |
Size: 2048 |
Author: hanxb |
Hits:
Description: 一个基于MFC的应用的小程序,使用了一些比较关键的累,比如CArray等,有很好的学习价值-MFC-based application of a small procedures, the use of some of the more crucial tired, such as CArray, etc., there is very good value study
Platform: |
Size: 2003968 |
Author: qurenjun |
Hits:
Description: 从MFC中提取的容器类,可以再非MFC工程中使用CArray、CMap等MFC的容器。-Extracted from the MFC container class can be used in non-MFC project CArray, CMap containers such as MFC.
Platform: |
Size: 8192 |
Author: Robert |
Hits:
Description: 比VC自带的数组类CArray还快的数组类-Than the VC' s own array type faster array CArray Class
Platform: |
Size: 2048 |
Author: 陈梓强 |
Hits:
Description: 此程序示例将VC之CArray<>对象转换为.NET之ArrayList托管对象。只需将函数编译成DLL,便可供C#使用。工程文件为vs2008
--pclion <http://www.tryahead.com/shk/>
-the project is a example to convert a VC CArray<> object to a .NET ArrayList object. --pclion
Platform: |
Size: 5120 |
Author: pclion |
Hits: