// stlMap.cpp : Defines the entry point for the console application.
stl map一对多用法_#pragma//
stl map一对多用法_#pragma#pragma warning (disable : 4786 ) 
stl map一对多用法_#pragma#include "stdafx.h"
stl map一对多用法_#pragma#include <map>;
stl map一对多用法_#pragma#include <string>
stl map一对多用法_#pragma#include <iostream>
stl map一对多用法_#pragma#include <stdlib.h>
stl map一对多用法_#pragma#include <list>;
stl map一对多用法_#pragmausing namespace std;
stl map一对多用法_#pragma
stl map一对多用法_#pragmaint main(int argc, char* argv[])
stl map一对多用法_g++_12{
stl map一对多用法_#include_13
stl map一对多用法_#include_13    typedef std::list<std::string> StringList;
stl map一对多用法_#include_13    map<string,StringList>map_roster;
stl map一对多用法_#include_13    map<string,StringList>::iterator iter;
stl map一对多用法_#include_13    
stl map一对多用法_#include_13    StringList slMing;
stl map一对多用法_#include_13
stl map一对多用法_#include_13    slMing.push_back("mingfei1ÌõÏûÏ¢");
stl map一对多用法_#include_13    slMing.push_back("mingfei2ÌõÏûÏ¢");
stl map一对多用法_#include_13    map_roster["mingfei"]=slMing;
stl map一对多用法_#include_13
stl map一对多用法_#include_13    slMing.erase(slMing.begin(),slMing.end());
stl map一对多用法_#include_13
stl map一对多用法_#include_13    slMing.push_back("1ÌõÏûÏ¢");
stl map一对多用法_#include_13    slMing.push_back("2ÌõÏûÏ¢");
stl map一对多用法_#include_13    slMing.push_back("3ÌõÏûÏ¢");
stl map一对多用法_#include_13
stl map一对多用法_#include_13    map_roster["ydp"]=slMing;
stl map一对多用法_#include_13
stl map一对多用法_#include_13    iter=map_roster.find("mingfei");
stl map一对多用法_#include_13//     for (;iter!=map_roster.end(); iter++)
stl map一对多用法_#include_13//    {
stl map一对多用法_#include_13     cout<<iter->first<<endl;
stl map一对多用法_#include_13     StringList::const_iterator g = (*iter).second.begin();
stl map一对多用法_#include_13     for (;g!=(*iter).second.end();g++)
stl map一对多用法_ios_38     {
stl map一对多用法_#include_13         cout<<(*g).c_str()<<endl;
stl map一对多用法_ios_40     }
stl map一对多用法_#include_13
stl map一对多用法_#include_13//}
stl map一对多用法_#include_13
stl map一对多用法_#include_13
stl map一对多用法_ios_38    /*
stl map一对多用法_#include_13    StringList::const_iterator it2=(*iter).second.begin();
stl map一对多用法_#include_13
stl map一对多用法_#include_13        for (;it2<(*iter).second.end();it2++)
stl map一对多用法_#include_13        {
stl map一对多用法_#include_13            //cout<<(*it2).c_str()<<endl;
stl map一对多用法_#include_13            cout<<"333"<<endl;
stl map一对多用法_#include_13        }
stl map一对多用法_ios_40*/
stl map一对多用法_#include_13
stl map一对多用法_#include_13    
stl map一对多用法_#include_13
stl map一对多用法_#include_13    system("pause");
stl map一对多用法_#include_13    return 0;
stl map一对多用法_ios_59}
stl map一对多用法_#pragma