- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int n[2][3][4]={{{14,25,38,47},{57,68,67,85},{91,0,41,42}},
- {{43,44,55,16},{57,58,89,80},{71,52,53,54}}};
-
- for(int i=0; i<2; i++)
- for(int j=0; j<3; j++)
- for(int k=0; k<4; k++)
- cout<<"n["<<i<<"]["<<j<<"]["<<k<<"]="<<n[i][j][k]<<endl;
-
- system("pause");
- return 0;
- }
複製代碼 |