C++11 之for循环的新用法_c++ vector for循环-CSDN博客

网站介绍:文章浏览阅读1.9k次。基本用法#include <iostream>using namespace std;int main(){ //随机定义的数组 int array[10] = { 54, 23, 78, 9, 15, 18, 63, 33, 87, 66 }; for (int i = 0; i < 10; i++) { cout << array[i] << " "; //输出:54 23 78 9 15 18 63 33 8_c++ vector for循环