summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorAlan Chang <tcode2k16@users.noreply.github.com>2022-01-04 00:36:58 +0800
committerGitHub <noreply@github.com>2022-01-04 00:36:58 +0800
commit6a111647579a2ac97f14a10e572be217cd3c514e (patch)
tree3b34d83160d7b49d2496142a6e46cad0179a0293 /c++.html.markdown
parent5828962380f3a573b4e7a47b440d651890df628b (diff)
[c++/en] Fix newline error (#4176)
* Fix newline error * use std::endl
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown2
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