![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
笔还是要动的
这个作者很懒,什么都没留下…
展开
-
STL :stack & queue & priority_queue & deque
栈:stack /*************************stack***********************/ stack<int> a; // 默认为双端队列 stack<int, vector<int>> stack1; // 用vector实现的栈 stack<int, list<...原创 2019-10-31 16:23:34 · 340 阅读 · 0 评论 -
STL : vector & string
#include<iostream>#include<string>#include<cctype>using namespace std;int main(int argc, char ** argv) { string s1("heLLo"); string s2(s1); string s3(6, 'c'); // s3:cccccc...原创 2019-10-30 20:57:25 · 143 阅读 · 0 评论 -
STL : list
#include <iostream>#include <list>using namespace std;bool f(int a) { return a > 5;}int main(int argc, char **argv) { list<int> a(10, 1); list<int> b(a); list&...原创 2019-10-30 19:24:20 · 89 阅读 · 0 评论