![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
stl
Jeeper_
这个作者很懒,什么都没留下…
展开
-
STL六大组件之容器篇(序列式容器vector)
一、vector概述:传统意义上的数组为静态空间,一旦配置大小将不能改变。而vector是动态空间的数组,其内部机制会自行扩充以容纳新的元素。所以使用时不用再担心数组不够用而定义一个超大空间的数组,vector可以更合理和灵活的应用空间。二、vector常用函数介绍:iterator begin(); //返回开始位置迭代器指针iterator end(); //返回结束位置迭代器指针原创 2015-12-28 00:05:30 · 494 阅读 · 0 评论 -
STL算法中仿函数使用
先看看STL中非组合式容器使用find算法一个例子:#include <algorithm>#include <iostream>#include <vector>#include <string>#include <stdio.h>#include <string.h>using namespace std;int main(){ char index[10]= {0};原创 2015-12-20 11:36:55 · 487 阅读 · 0 评论