A dream that you donnot fight for can haunt you for the rest of your life.
Vector
vector可以动态扩展(并不是在原空间之后续接新空间,而是找到更大的内存空间,然后将原数据拷贝到新空间,释放原空间)
vector容器的迭代器是支持随机访问的迭代器
#include<iostream>
#include<vector>
using namespace std;
void printvector(vector<int>&v)
{
for (vector<int>::iterator it = v.begin();it != v.end(); it++)