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

TOP

返回列表