摘要: 3、 vector容器 存放内置数据类型 #include <iostream> #include <vector> #include <algorithm> using namespace std; void MyPrint(int value) { cout << value << " "; } 阅读全文
posted @ 2022-01-20 13:13 ProEmon 阅读(36) 评论(0) 推荐(0)
摘要: 1、 STL的基本概念 STL (Standard Template Library,标准模板库) STL从广义上分为:容器(container)算法(algorithm)迭代器(iterator) 容器和算法之间通过迭代器进行无缝衔接 STL几乎所有的代码都采用了模板类和模板函数 STL的六大组件 阅读全文
posted @ 2022-01-20 13:12 ProEmon 阅读(43) 评论(0) 推荐(0)