C#基础 Math PI 圆周率 π的表示 |
您所在的位置:网站首页 › 圆周率是什么意思 › C#基础 Math PI 圆周率 π的表示 |
C#基础 foreach 遍历二维数组
RyanEpri: using System; namespace HelloWorldApplication { /* 类名为 HelloWorld */ class Programm { public static void showMap(int[,] mapParam) { } /* main函数 */ static void Main(string[] args) { int[,] map = new int[4, 10]; foreach (int intArr in map) { Console.Write(intArr + " "); } // //二维数组长度 int[x,y] 长度为x*y Console.WriteLine(map.Length); //维度。 Console.WriteLine(map.Rank); //获取第二个维度的长度。 Console.WriteLine(map.GetLength(1)); for (int i=0;i < map.GetLength(0) ;i++) { for (int j = 0; j < map.GetLength(1); j++) { Console.Write(map[i, j]); } Console.WriteLine(); } } } } C#基础 foreach 遍历二维数组RyanEpri: 同报错,这博主写的睿智文章。 C#基础 foreach 遍历二维数组weixin_一人吃下: 为啥用string二维数组时,用foreach按第二种方法写编译器报错 C#基础 int[] 交集,并集,差集木子风铃: 不管哪个集合 我怎么试都不行啊。 C#基础 string Substring 截取字符串中的一部分hanliang0032: 感想分享 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |