CStringArray 应该说是术语MFC框架之外的一个分支,小的数组类
CStringArray arrCString;//Rows, Column;
CString strTemp;
CString str[5]={"1111","2222","3333","4444","5555"};
for(int i=0;i<5;i++)
{
arrCString.Add(str[i]);
}
int elemCount= arrCString.GetSize();// 获得字符串数组中元素的个数; elemCount=5
int maxIndex=arrCString.GetUpperBound();//获得字符串数组中 最大下标; maxIndex=4
strTemp=arrCString.GetAt(1);// strTemp="2222"
// this is important
#ifdef _DEBUG
afxDump.SetDepth( 1 );
afxDump << "Add example: " << &arrCString << "\n";
/* Output中输出的内容*********************************
Add example: a CStringArray at $12F61C
with 5 elements
[0] = 1111
[1] = 2222
[2] = 3333
[3] = 4444
[4] = 5555
*/
#endif