1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
void processThroughArray(int myArray[][10][10], int x, int y, int z, int x2, int y2, int z2)
{
for (int x=0, x2 = 0; x<10, x2 < 10; x++,x2++)
{
for (int y=0,y2 = 0; y<10,y2 < 10; y++,y2++)
{
for (int z=0,z2 = 0; z< 10,z2 < 10; z++,z2++)
{
// Display the value of the coordinate
cout << "\nCordinate " << x << ", " << y << ", " << z << " value is " << myArray[x,x2][y,y2][z,z2];
}
}
}
}
|