随笔分类 -  STL

摘要:1.访问 下标访问"[]" 和at()方法两种方式,推荐第二种方法,它会进行边界检查。 对于map<string, int>map_str;其访问方式为: map_str["firstel"];或者map_str.at("firstel"); // 返回键值firstel对应的值 int size( 阅读全文
posted @ 2017-10-12 18:14 LiebeCelery 阅读(154) 评论(0) 推荐(0)