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

TOP

返回列表