C++for循环迭代二维数组
#include<iostream>#include<string>
#include<vector>
#include<iterator>
using namespace std;
int main(void){
int array={
1,2,3,4,5,6,7,8,9
};
for(auto &i:array){
for(auto j:i){
cout<<j<<endl;
}
}
return 0;
}
文档来源:51CTO技术博客https://blog.51cto.com/u_15302296/3072257
页:
[1]