摘要: class CAgent {public:CAgent();virtual ~CAgent();};注:CAgent不可继承MFC类*.h文件中#include <map>#include <string>using namespace std;#include "Agent.h"*.cpp 文件中map<string,CAgent> AgentList;string s="1001";CAgentagent1;AgentList.insert(make_pair(s,agent1)); 阅读全文
posted @ 2011-07-22 10:49 海乐学习 阅读(7356) 评论(0) 推荐(0) 编辑