返回列表 發帖
  1. include<iostream>endel;
  2. include<cstdlib>endel:
  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}},
  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 k=0; k<4; k++)
  11. cout<<"n["<<i<<"]["<<j<<"]["<<k<<"]="<<n[i][j][k]<<endl;
  12. system("pause");
  13. return 0;
  14. }                          
複製代碼

TOP

返回列表