怎样实现CMap?(最好给出源代码) 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 use CMap?#include <afxwin.h>#include <afxtempl.h>void main(){ AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0); CMap<int, int, CString, CString> m_cMap; m_cMap.SetAt(9923033, "张三"); m_cMap.SetAt(9826033, "张A"); m_cMap.SetAt(9923063, "张B"); m_cMap.SetAt(9923093, "张C"); CString strName; m_cMap.Lookup(9923063, strName); AfxMessageBox(strName);} CMap <int,int,CString,CString> m_map;m_map[0,1]="china";m_map{0,2]="china2";m_map[1,1]="china3";AfxMessageBox(m_map[0,1]);... 我想让MAP里的元素也是MAP怎样实现? 还是用STL得好CMAP<int,int,CMAP,CMAP> m_map ?????? 是的CMap<int,int,CString,CString> table;CMAP<int,int,table,table> m_map这样做行吗? 〔dll问题〕动态库函数调用出错 大家来比赛,看谁的算法好! 接分 GetText() 需要什么头文件 那位兄弟给我发个.net的platformSDK里的iocp例子。急用!!! 鼠标在对话框上点击无效 这很可能是 ADO 里的所谓的“智能指针”存在问题!!!??? 我在做CD播放器时,遇到问题,我需要新建一个类,但是不知道用什么基类 [求助]下面的代码是否可以实现自动连接电信网络。。。 RasHangUp的用法 为什么启动后马上消失? 请问win2k下,如何获取指定硬盘分区的MS-DOS Device Name?
#include <afxwin.h>
#include <afxtempl.h>
void main()
{
AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0);
CMap<int, int, CString, CString> m_cMap;
m_cMap.SetAt(9923033, "张三");
m_cMap.SetAt(9826033, "张A");
m_cMap.SetAt(9923063, "张B");
m_cMap.SetAt(9923093, "张C");
CString strName;
m_cMap.Lookup(9923063, strName);
AfxMessageBox(strName);
}
m_map[0,1]="china";
m_map{0,2]="china2";
m_map[1,1]="china3";
AfxMessageBox(m_map[0,1]);
...
CMAP<int,int,CMAP,CMAP> m_map ??????
CMap<int,int,CString,CString> table;
CMAP<int,int,table,table> m_map
这样做行吗?