#include <iostream>
using namespace std;
int main()
{
int arr2[][3] = { 1,2,3,4,5,6 };
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 3; j++)
{
cout << arr2[i][j] << " ";
}
cout << endl;
}
return 0;
}
蓝桥环,用C++建立一个二维数组,并对其输出。
于 2022-09-13 21:49:15 首次发布