返回列表 發帖
  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 x=0;x<4;x++)
  8.     {
  9.         for(int z=0;z<3;z++)  
  10.         {
  11.             cout<<"n["<<x<<"]["<<z<<"]="<<n[x][z]<<endl;        
  12.         }  
  13.     }
  14.     system("pause");
  15.     return 0;   
  16. }
複製代碼

TOP

返回列表