1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
int min_array(int[], int);
int main()
{
const int NUMROWS = 7;
const int NUMCOLS = 3;
const int NUM3D = 7;
int array [NUMROWS][NUMCOLS][NUM3D] ={{{67,67,67,67,67,68,68},
{71,72,72,72,72,72,72},
{75,75,75,75,75,75,75}},
{{50,50,50,50,50,50,51},
{53,53,53,53,53,53,53},
{55,55,55,55,55,55,55}}}
for(int i = 0; i < NUM3D; i ++)
{
for(int j = 0; j < NUMROWS; j++)
{
cout << endl;
for(int k = 0; k < NUMCOLS; k++)
{
cout << setw(4) << array[j][k][i];
}
}
}
}
return 0;
}
|