首页 > 代码库 > 练习3.43

练习3.43

#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;}

  

练习3.43