摘要: 集合及特殊集合 集合的基本信息: System.Collections 命名空间包含接口和类,这些接口和类定义各种对象(如列表、队列、位数组、哈希表和字典)的集合。System.Collections.Generic 命名空间包含定义泛型集合的接口和类,泛型集合允许用户创建强类型集合,它能提供比非泛 阅读全文
posted @ 2016-06-28 20:37 这都不是事 阅读(1013) 评论(2) 推荐(3) 编辑
摘要: 输入每个人的中奖号码,进行滚动显示 //清屏 //随即一个索引 // 根据索引打印 //等待0.1秒 Console.Write("请输入参与者人数:"); int s = int.Parse(Console.ReadLine()); string[] ss = new string[s]; for 阅读全文
posted @ 2016-06-28 11:35 这都不是事 阅读(671) 评论(0) 推荐(0) 编辑
摘要: int[] ss = new int[6]; Random s = new Random(); Console.WriteLine("双色球随机:"); for (int i = 0; i < 6; i++) { bool b = true; int a = s.Next(1, 34); for ( 阅读全文
posted @ 2016-06-28 11:30 这都不是事 阅读(2050) 评论(3) 推荐(0) 编辑