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

TOP

返回列表