返回列表 發帖
本帖最後由 黃辰昊 於 2019-11-29 21:04 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {   
  6.     int n[3][4]={{1,2,3,4},
  7.                  {5,6,7,8},
  8.                  {9,10,11,12}};
  9.     for(int i=0; i<3; i++)
  10.         for(int k=0; k<4; k++)
  11.             cout<<"n["<<i<<"]["<<k<<"]="<<n[i][k]<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼
Huang chenhao

TOP

返回列表