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

TOP

返回列表