MFC中的CMap类使用

#include   
  
CMapmy_Map;  
  
CString strKey   = _T("");  
CString strValue = _T("");  
  
my_Map.SetAt("1","hello");//添加元素  
  
CString pLook;  
my_Map.Lookup("1",pLook);//查找元素  
  
ShowMessage(pLook.GetBuffer(pLook.GetLength()));  
  
int c = my_Map.GetCount();  
  
my_Map.RemoveAll();//删除所有元素  
  
bool re = my_Map.RemoveKey("1");//删除其中一个元素  
  
c = my_Map.GetCount();//获取元素个数

新闻名称:MFC中的CMap类使用
网站地址:http://hxwzsj.com/article/ijjdgp.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 企业网站建设 成都网站建设 教育网站设计方案 成都定制网站建设 网站建设改版 做网站设计 成都企业网站建设 营销网站建设 网站建设开发 成都网站制作公司 网站建设 定制网站建设多少钱 成都网站建设 成都网站设计 品牌网站建设 成都网站建设流程 企业网站设计 app网站建设 成都企业网站设计 成都网站建设 企业网站设计 重庆手机网站建设