C++ vector动态数组的for与for_each操作
1.for (type&元素: 数组)2.for (auto 指针变量= 数组.begin(); 指针变量 != 数组.end(); 指针变量++)3.vector<type>::iterator iters; //迭代器指针 for (iters = 数组.begin(); iters != 数组.end(); iters++)4.for_each(数组.begin(), 数组.end(), 函数);#include<fun..