# include & lt; afxtempl.h>,, ,, LPCTSTR CMap<装运箱,装运箱,LPCTSTR> my_Map;,, ,, CString strKey ,,=, _T (" "),,, CString strValue =, _T (" "),,, ,, my_Map.SetAt(" 1 ", "你好");//添加元素,, ,, 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();//获取元素个数