From e66ce58358a4bcb0b9282f6d4ac0089aea90e3bb Mon Sep 17 00:00:00 2001 From: Siyuan <294873684@qq.com> Date: Thu, 30 Aug 2018 21:17:31 +0800 Subject: [PATCH] Update map.md --- docs/ds/stl/map.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ds/stl/map.md b/docs/ds/stl/map.md index 351821aa..7bfe56e8 100644 --- a/docs/ds/stl/map.md +++ b/docs/ds/stl/map.md @@ -42,7 +42,7 @@ map mp= { 格式:`if(mp.find()==mp.end())`,意思是如果返回的是 `map` 的末尾,因为 `map` 如果没有查找到元素,迭代器会返回末尾。 -其中 ```mp.end()``` 返回指向map尾部的迭代器 +其中 `mp.end()` 返回指向map尾部的迭代器 3.如果你想知道map里全部的元素,那么最正确的做法使用迭代器了,如果你还不会,请查阅之前文章中的迭代器。 @@ -51,7 +51,7 @@ for(iter=mp.begin();iter!=mp.end();iter++) cout<first<<" "<second<first` 是 `map` 索引,例如 `Tom`,而 `iter->second` 是下标。 -- 2.11.0