08 2021 档案

摘要:#include<iostream> #include<string> #include<sstream> #include<vector> using namespace std; int main() { //input:3 2 5 4 6 5 8 7 string line; getline( 阅读全文
posted @ 2021-08-22 17:04 shenlei_blog 阅读(1006) 评论(0) 推荐(0) 编辑
摘要:C++ STL find函数总结 ##适用场景: ###1. hash stl的哈希map有专门的find****&&****count函数用来查找是否存在某个key 具体用法见用例 /* * 哈希表的find返回的是一个迭代器,可以通过x->first访问Key,x->second访问val,如果 阅读全文
posted @ 2021-08-10 12:18 shenlei_blog 阅读(253) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示