码迷,mamicode.com
首页 > 编程语言 > 详细

遍历三维数组

时间:2015-08-10 22:04:47      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

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();
        }
    }
}

技术分享

遍历三维数组

标签:

原文地址:http://www.cnblogs.com/xubin-747/p/4719242.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!