diff --git a/c++.html.markdown b/c++.html.markdown index 4399d946..038c3900 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -946,7 +946,7 @@ mymap.insert(pair('Z',26)); // To iterate map::iterator it; for (it=mymap.begin(); it!=mymap.end(); ++it) - std::cout << it->first << "->" << it->second << std::cout; + std::cout << it->first << "->" << it->second << std::endl; // Output: // A->1 // Z->26