四维数组是什么样的形式呢    想象不出来  最好能给一个例子   谢谢!

解决方案 »

  1.   


    int[,,,] i = new int(4,4,4,4);
    //定义。。
    for(int a = 0;a<4;a++)//遍历
    {
        for(int b = 0;b < 4;b++)
        {
            for(int c = 0;c < 4;c++)
            {
                for(int d = 0;d < 4;d++)
                {
                    i[a,b,c,d] = 4;
                }
            }
        }
    }
      

  2.   

     int[, , ,] FourDimention = new int[2, 3, 4, 5];