标签:
#include<iostream> using namespace std; int main() { int ia[2][3] = { 1, 2, 3, 4, 5, 6 }; //数组下标略 for (int (&i)[3] : ia) for (int &j : i) cout << j << endl; for (int (*i)[3] = begin(ia); i != end(ia); i++) for (int *j = begin(*i); j != end(*i); j++) cout << *j << endl; return 0; }
标签:
原文地址:http://www.cnblogs.com/KennyRom/p/5854574.html