标签:highlight for image int vector com out 迭代 迭代器
#include <iostream> #include <vector> using namespace std; int main() { vector<int> v1{ 1, 2,3,4,5,6,7,8,9,10 }; for (auto i = v1.begin(); i != v1.end(); i++) { (*i) *= 2; cout << *i<<endl; } return 0; }
标签:highlight for image int vector com out 迭代 迭代器
原文地址:https://www.cnblogs.com/xiaoli94/p/11208318.html