Map Iterator Example #include #include using namespace std; int main() { map count; // fill count as previously for (map::const_iterator i=count.begin(); i != count.end(); ++i) cout << i->first << '\t' << i->second << endl; }