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

TOP

返回列表