//遍历
map<string,CAgent>::iterator iter;
for(iter=m_AgentClients.begin();iter!=m_AgentClients.end(); ++iter){
if(iter->first=="8001"){
this->SendMsg(iter->second.pSocket,strMsg);//iter->first
}
}
c++ map
最新推荐文章于 2025-03-17 14:14:10 发布