vecto之简单应用:
#include#include using namespace std;int main(){ vector v;// v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); vector ::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