<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>

Uthinker

the quieter you become,the more you are able to hear

2018年12月12日

[译] CStringArray Class

当您看到CObject指针作为函数参数时,请替换LPCTSTR。原文 https://docs.microsoft.com/zh-cn/previous-versions/tddz3etf(v=vs.140)

此类为支持CString对象数组。
头文件:afxcoll.h
格式:
class CStringArray : public CObject  
成员
CStringArray的成员函数类似于CObArray类的成员函数。由于类似,你可以通过CObArray参考文档成员函数特性。当您看到CObject指针作为返回值时,请替换CString对象(而不是CString指针)。当您看到CObject指针作为函数参数时,请替换LPCTSTR。
CObject* CObArray::GetAt( int <nIndex> ) const;
例如,替换为
CString CStringArray::GetAt( int <nIndex> ) const;

void SetAt( int <nIndex>, CObject* <newElement> )
替换为
void SetAt( int <nIndex>, LPCTSTR <newElement> )

公有构造函数

Name说明
CObArray::CObArray
构造一个空数组




方法(公有)
名称说明
CObArray::Add
将元素添加到数组的末尾;如果需要增加数组
CObArray::Append
将另一个数组追加到该数组;如果需要增加数组
CObArray::Copy将另一个数组复制到该数组;如果需要增加数组
CObArray::ElementAt返回对数组?#24615;?#32032;指针的临时引用
CObArray::FreeExtra?#22836;?#24403;前上限以上的所有未使用内存
CObArray::GetAt返回给定索引处的值
CObArray::GetCount获取该数组中的元素数
CObArray::GetData允许访问数组中的元素。可以为空
CObArray::GetSize获取该数组中的元素数
CObArray::GetUpperBound返回最大的有效索引
CObArray::InsertAt在指定索引处插入一个元素(或另一个数组中的所?#24615;?#32032;)
 CObArray::IsEmpty 判断该数组是否为空
 CObArray::RemoveAll 移除该数组所?#24615;?#32032;
 CObArray::RemoveAt 移除指定位置的元素
 CObArray::SetAt 设置给定索引的值;数组不允许增长
 CObArray::SetAtGrow 设置给定索引的值;如果需要增加数组
 CObArray::SetSize设置该数组中要包含的元素的数量




























备注
CStringArray合并了IMPLEMENT_SERIAL宏来支持序列化和转储它的元素。如果将CString对象数组存储到存档文件中,要么使用重载插入操作符,要么使用Serialize成员函数,则?#26469;?#24207;列化每个元素。
注意:
在使用数组之前,使用SetSize确定其大小并为其分配内存。如果不使用SetSize,则向数组中添加元素会经常重新分配和复制它。频繁的重新分配和复制是低效的,并?#19968;?#30862;片化内存。

posted @ 2018-12-12 22:31 Uthinker 阅读(26) | 评论 (0)编辑 收藏

2018年2月9日

C++学习笔记

   昨天听了同事讲Python。我自己最近也在整理些C++的东西。不过只是以C++ Primer书本为基础,把上面的知识点整理到博客上而已。不能算是什么原创或转载的文章。就算是自己整理的知识笔?#21069;傘++ Primer这本书实在是太厚了。所涉及的知识点也很多。之前自己在学习C++的时候有零散的整理些。现在打算给放到这个C++博客中,方便查阅。

posted @ 2018-02-09 17:09 Uthinker 阅读(37) | 评论 (0)编辑 收藏

2017年11月6日

C++学习笔记之初识

//Ving

posted @ 2017-11-06 15:11 Uthinker 阅读(51) | 评论 (0)编辑 收藏

仅列出标题  
<2019年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

?#24049;?/h3>

统计

常用链接

留言簿(3)

随笔分类

随笔档案

搜索

最新评论

阅读?#21028;?#27036;

评论?#21028;?#27036;

<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
快三3稳赚技巧钱绝招
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>