diff options
author | Alan Chang <tcode2k16@users.noreply.github.com> | 2022-01-04 00:36:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 00:36:58 +0800 |
commit | 6a111647579a2ac97f14a10e572be217cd3c514e (patch) | |
tree | 3b34d83160d7b49d2496142a6e46cad0179a0293 | |
parent | 5828962380f3a573b4e7a47b440d651890df628b (diff) |
[c++/en] Fix newline error (#4176)
* Fix newline error
* use std::endl
-rw-r--r-- | c++.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
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<char,int>('Z',26)); // To iterate map<char,int>::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 |