用户工具

站点工具


linux:cpp学习:std_lib_study

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:cpp学习:std_lib_study [2022/08/15 19:55] zhangguolinux:cpp学习:std_lib_study [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1
行 22: 行 22:
  map<char, int>::iterator it = mp.find('a');  map<char, int>::iterator it = mp.find('a');
  if (it !=mp.end()){  if (it !=mp.end()){
- printf("%c %d\n", it->first,it->second);+ printf("%c %d\n", it->first,it->second); // 只有map迭代器可以使用first/second方式
  }  }
  else {  else {
行 34: 行 34:
  
 </code> </code>
 +
 +==== - map用法 ====
 +https://blog.csdn.net/jinghuashuiyuedi/article/details/54347844
 +
  
linux/cpp学习/std_lib_study.1660564542.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki