三维数据_包你一看就懂。

int[, ,] a = new int[3, 1, 3]
                {
                    {
                        {1,2,3}
                    },
                    {
                        {1,2,3}                               
                    },
                    {
                        {1,2,3}
                    }
                };

int[, ,] b = new int[3, 3, 1]
            {
                {
                    { 1 },
                    { 2 },
                    { 3 }
                },
                {
                    { 4 },
                    { 5 },
                    { 6 }
                },
                {
                    { 7 },
                    { 8 },
                    { 9 }
                }
            };

int[, ,] c = new int[1, 3, 3]
            {
                {
                    { 1, 2, 3 },
                    { 4, 5, 6 },
                    { 7, 8, 9 }
                }
            };

posted @ 2013-08-08 16:59  pnljs  阅读(222)  评论(0编辑  收藏  举报