#include <iostream>
#include <string>
#include <vector>
using namespace std;
void main()
{
int ia[2][3] = { {2,3,4},{3,2,4}};
for (auto p = begin(ia); p != end(ia); ++p)
{
for (auto q = begin(*p); q != end(*p); ++q)
{
cout << *q << " ";
}
}
system("pause");
}
迭代器输出二维数组
最新推荐文章于 2022-03-25 19:15:25 发布