MFC 的CList,CPtrList,CObList,CStringList 用法之CStringList

来源:互联网 发布:最好的炒股软件 知乎 编辑:程序博客网 时间:2024/05/07 22:54

CStringList存放CString字符串类型,相当于CList<Cstring,CString>

CString str1;
CString str2;
CStringList m_lsFiles;

 

for ( int uFile = 0; uFile < 10; uFile++ )
{
str1.Format("%d" ,uFile);         
         m_lsFiles.AddTail(str1);
} // end for

for ( int uFile = 0; uFile < 10; uFile++ )
{
str2 = m_lsFiles.GetAt(m_lsFiles.FindIndex(uFile));
}// end for

<script type="text/javascript"><!--google_ad_client = "pub-6733870115125334";google_language = "zh-cn";google_ad_width = 250;google_ad_height = 250;google_ad_format = "250x250_as";google_ad_type = "text_image";google_ad_channel = "7174608304";//google_myset//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script> 
原创粉丝点击