printf输出%输入两个% 1printf("%%") string <==> intstring==>int stoi(s)(蓝桥杯不能用) int==>string to_string() C++ string 反转使用algorithm中的reverse函数 1reverse(s.begin(),s.end()); 堆12345//小根堆priority_queue<int,vector<int>,greater<int>>q;//大根堆priority_queue<int> q; map遍历 使用迭代器 12345map<string, int>::iterator it;for (it = m2.begin(); it != m2.end(); it++) { string s = it->first; printf("%s %d\n", s.data(), it->second);} 使用auto 123for(auto it : map1){ cout << it.first <<" "<< it.second <<endl;} Android 点击事件的三种实现方法 Newer Android基础 Older a-c-dream 贵在坚持 109 13 0 CATEGORYS Android (5) k8s (26) 机器学习 (11) 算法 (9) Hadoop (4) web (3) Hadoop HBASE (1) HBASE (2) docker (10) hexo (1) 数据分析 (2) 数据结构 (1) 爬虫 (1) TAGS