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

TOP

返回列表