摘要:
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)); 阅读全文