using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace 遍历三维数组
{
class Program
{
static void Main(string[] args)
{
ArrayList al = new ArrayList();
int[, ,] sz = new int[2, 4, 4] { { { 88, 456, 897, 25987 }, { 4692, 1478, 11, 1578 }, { 887984, 156156, 321, 132 }, { 48, 15, 131, 464 } }, { { 8789, 564, 25, 213 }, { 9879, 45, 321, 494 }, { 948, 96, 562, 155 }, { 987, 15, 35, 65 } } };
foreach (object b in sz)
{
Console.WriteLine("遍历数="+b);
}
int[] sz1 = new int[5];
Console.ReadLine();
}
}
}
![](https://images0.cnblogs.com/blog2015/790672/201508/102109556293982.jpg)