返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.         int n[4] [3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};
  7.         for(int i = 0; i <= 3; i++)
  8.         {
  9.                 for(int j = 0; j <= 2; j++)
  10.                         cout << "n["<< i <<"]["<< j <<"] = "<< n[i][j] << endl;
  11.         }
  12.         system("pause");
  13.         return 0;
  14. }
複製代碼

TOP

返回列表