typedef map::const_iterator MapIteratorfor MapIterator iter = mapex.begin iter != mapex.end iter++{ cout