vecto之简单应用:

#include<vector>
#include<iostream>
using namespace std;
int main()
{
    vector <int> v;//
    v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4);
    vector<int >::const_iterator i;
    for (i = v.begin(); i != v.end(); ++i)
    {
        cout<<* i << ",";
    }
    cout << endl;
    system("pause");
}

 这一篇文章写得也不错:

https://www.cnblogs.com/DswCnblog/p/5664736.html

版权声明:本文为doker原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/doker/p/11076780.html