标题:求解答,谢谢
取消只看楼主
小新人
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2012-12-18
结帖率:75%
已结贴  问题点数:1 回复次数:0 
求解答,谢谢
static void Main(string[] args)
        {
            int[] strA ={3,4};
            int[] strB=new int []{1,11};
            Array arr = Array.CreateInstance(Type.GetType("System.Int32"), strA, strB);
            Random r = new Random();
            for (int i = arr.GetLowerBound(0); i < arr.GetUpperBound(0); i++)
            {
                for (int j =arr.GetLowerBound(1) ; j <arr .GetUpperBound (1) ; j++)
                {
                    arr.SetValue((int)r.Next()%100,i,j );
                    Console.WriteLine("arr[{0},{1}]={3}",i,j,arr.GetValue(i,j));
                }
            }
   “Console.WriteLine("arr[{0},{1}]={3}",i,j,arr.GetValue(i,j));”为什么VS报错说有无效参数??
搜索更多相关主题的帖子: void Random 
2012-12-20 14:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-392392-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.734037 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved