摘要: 数组: 一维数组: 第一种定义方式: int[] shuzu = new int[5]; //shuzu[0] = 1; //shuzu[1] = 2; //shuzu[2] = 3; //shuzu[3] = 4; //shuzu[4] = 5; //Console.WriteLine(shuzu 阅读全文
posted @ 2016-03-12 16:56 D董小姐 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Random: Random ran=new Random();//初始化 int a=ran.Next(10); Console.WhiteLine(a); Console.ReadLine(); //随机出验证码,对照输入,判断是否正确; string s = "abcdefghijklmnop 阅读全文
posted @ 2016-03-12 11:36 D董小姐 阅读(151) 评论(0) 推荐(0) 编辑
摘要: //练习:判断邮箱格式是否正确 //1.有且只能有一个@ //2.不能以@开头 //3.@之后至少有一个. //4.@和.不能靠在一起 //5.不能以.结尾 Console.Write("请输入您的邮箱账号"); string mail = Console.ReadLine(); bool a = 阅读全文
posted @ 2016-03-12 11:28 D董小姐 阅读(213) 评论(0) 推荐(0) 编辑