#include #include #include #include using namespace std; //map iterator //myStackPushPop1.cpp int main() { map m1; map::iterator it, mit; typedef pair mypair; stack st1, st2; string s1,s2; // m1["A"] ="Apple"; m1["B"] ="Banana"; m1["C"] ="Coffee"; // cout<<"\n loading stack with push from map elemets"; for(it= m1.begin(); it !=m1.end(); it++) { st1.push(it->first);st2.push(it->second); cout<<"\n map "<< it->first <<":" <<(*it).second; } cout<<"\n reading stack with after peeling with pop"; for(int i =0; i <3; i++) { s1 = st1.top(); s2 = st2.top(); cout<<"\n \t" <