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

TOP

返回列表