📜  c++ 向量迭代器 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:51.381000             🧑  作者: Mango

代码示例1
#include 
#include 
using namespace std;

vector myvector;

for (vector::iterator it = myvector.begin();
     it != myvector.end();
     ++it)
   cout << ' ' << *it;
cout << '\n';