diff --git a/Data Structures and Algorithms.md b/Data Structures and Algorithms.md index e5d1eef..e044724 100644 --- a/Data Structures and Algorithms.md +++ b/Data Structures and Algorithms.md @@ -313,7 +313,7 @@ unsigned int size = m.size(); // Iterate for(std::map::iterator it = m.begin(); it != m.end(); it++) { - std::cout << *it << std::endl; + std::cout << (*it).first << " " << (*it).second << std::endl; } // Remove by key