遍历三维数组

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

            foreach (int a in szA)
            {
                Console.WriteLine("遍历=" + a);
            }

            Console.ReadLine();

  

posted @ 2015-08-10 22:23  小菜鸟。  阅读(385)  评论(0编辑  收藏  举报