摘要: 1、定义一个CMap,向这个CMap中增加数据项(键-值对)。CMap<CString, LPCTSTR, CString, LPCTSTR>m_ItemMap;CString strKey = _T(""), str = _T("");int i;for(i = 0; i < 5; i++) { strKey.Format("%d", i); //这个是键 str.Format("A%d", i); //键对应的值 m_ItemMap.SetAt(strKey, str); }2、遍历整个CMa 阅读全文
posted @ 2011-01-20 14:11 maxweii 阅读(1233) 评论(0) 推荐(0)