摘要: Console.wrete(“请输入此次参加抽奖活动的人数:”); Int ren = convert toint32(console,readline()); String[]shuzu =new string [ren ]; For (int i = 0 ; i <ren ; i ++) { Console.write(请输入第+i+1个人的手机号) Shuzu[i ]=console.r... 阅读全文
posted @ 2016-04-25 15:37 屈震 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Foreach(对集合每个元素的引用In 集合) {} Int []a = new int [5]{1,2,3,4,5}; Foreach ( int b in a ) { //b就是a中的每个元素} 注意: foreach 只能对集合进行遍历。 Foreach 在操作集合的时候,只能读不能改。 F 阅读全文
posted @ 2016-04-25 09:50 屈震 阅读(106) 评论(0) 推荐(0) 编辑