返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int y[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.     for(int i=0; i<2; i++)
  9.         for(int j=0; j<3; j++)
  10.             for(int g=0; g<4; g++)
  11.                 cout<<"y["<<i<<"]["<<j<<"]["<<g<<"]="<<y[i][j][g]<<endl;
  12.               
  13.     system("pause");
  14.     return 0;   
  15. }
複製代碼
hahahahahahahaha

TOP

返回列表