VC中的 动态结构体
来源:互联网 发布:知乎课程 编辑:程序博客网 时间:2024/06/04 23:05
typedef struct ST_COLUMN
{
CString csColName;
CString csColValue;
}COLUMN;
typedef CArray<COLUMN,COLUMN&> ARG_ColValue;
ARG_ColValue g_argColValue;
----------------------------------------------------------------------------------------------------------------
ST_COLUMN stCol;
stCol.csColName="id1";
stCol.csColValue="10001";
g_argColValue.Add(stCol);
int iCont=g_argColValue.GetCount();
stCol.csColName="id2";
stCol.csColValue="10002";
g_argColValue.Add(stCol);
iCont=g_argColValue.GetCount();
stCol.csColName="id3";
stCol.csColValue="";
g_argColValue.Add(stCol);
iCont=g_argColValue.GetCount();
for(int i=0; i<iCont; i++)
{
stCol=g_argColValue.GetAt(i);
CString csValue1 = stCol.csColName;
CString csValue2 = stCol.csColValue;
}
for(int i=0; i<iCont; i++)
{
stCol=g_argColValue.GetAt(i);
if(stCol.csColName == "id3")
{
stCol.csColValue="100003";
g_argColValue.SetAt(i,stCol);
}
}
for(int i=0; i<iCont; i++)
{
stCol=g_argColValue.GetAt(i);
CString csValue1 = stCol.csColName;
CString csValue2 = stCol.csColValue;
}
g_argColValue.RemoveAt(1);
iCont=g_argColValue.GetCount();
for(int i=0; i<iCont; i++)
{
stCol=g_argColValue.GetAt(i);
CString csValue1 = stCol.csColName;
CString csValue2 = stCol.csColValue;
}
g_argColValue.RemoveAll();
iCont=g_argColValue.GetCount();
for(int i=0; i<iCont; i++)
{
stCol=g_argColValue.GetAt(i);
CString csValue1 = stCol.csColName;
CString csValue2 = stCol.csColValue;
}
- VC中的 动态结构体
- vc++中的动态链接库
- VC中的结构体和枚举类型序列化
- [VC++]VC++中结构体知识点强化
- 动态结构体
- VC结构体边界对齐
- Vc中结构体小计
- 动态储存结构体数组
- 利用VC调用动态链接库中的函数
- 利用VC调用动态链接库中的函数
- 利用VC调用动态链接库中的函数
- 利用VC调用动态链接库中的函数
- 利用VC调用动态链接库中的函数
- Scintilla 3.2.5在VC中的编译(动态、静态)
- 利用VC调用动态链接库中的函数
- 结构体中的函数
- 结构体中的函数
- C++中的结构体
- TJU Exercise Contest 2011(7) A题
- sql 内联与外联区别
- C#完整的通信代码(点对点,点对多,同步,异步,UDP,TCP)
- [Firefox][扩展系列][01]开发环境准备
- 40个技巧优化您的PHP代码
- VC中的 动态结构体
- 开源
- 使用Spring框架的好处(转帖)
- javaScript 一键复制
- joj 2259 进制转换(含负进制)
- Android应用程序组件间通信(一)——Intent类简介
- Java的常用包和组件
- Java的常用包和组件
- C# TCP 通信