#include #include #include using namespace std; //myMapRecursionIf2.cpp void message(int); string name; int zip; int main() { //city["Bloomingdale"]= 60108; // city["Roeselle"]= 60172; // city["Schaumberg"]= 60159; // city["Wheaton"]= 60189; message(5); return 0; } void message(int n1) { string str1[] = {"Bloomingdale","Roselle", "Schaumberg", "Wheaton"}; int nzip[]= { 60108,60172,60159, 60189}; string str2; int n2; map city; map::iterator it; for(int i=0; i < 4; i++) { //str2= str1[i];n2 =(int) n1[i]; city[str1[i]]= nzip[i]; ; } // for(it=city.begin(); it !=city.end(); it++) { cout<<"\n " <<(*it).first << "\t " << (*it).second; } }