C++Primer 练习题3.43--3.45
C++Primer 练习题3.43–3.45
3.43
版本一:
#include<iostream>
using namespace std;
int ia[3][4]={1,3,2,4,5,11,9,7,8,10,6,12};
int main()
{
for(const int (&row) [4] : ia)
for(const int col : row)
cout<<col<<" ";
return 0;
}
版本二:
#
原创
2020-12-28 15:50:12 ·
181 阅读 ·
0 评论