2015年4月16日
摘要: public static int emailduan(string x)//类里边,函数名随便起,需要传入参数为string类型 { string[] a = x.Split('@');//以@为分界线,分为数组 int a1 = a.Length; if (a1 == 2) { string[]... 阅读全文
posted @ 2015-04-16 17:54 冰冥寒流 阅读(178) 评论(0) 推荐(0) 编辑
摘要: public static int haoping(string x)//类里边,函数名随便起,需要传入参数为string类型 { //判断电话号码的输入情况,首位为1且总长度为11 //返回1表示填入号码正确,返回2则表示填入号码不正确 try { if (Convert.ToInt32... 阅读全文
posted @ 2015-04-16 17:51 冰冥寒流 阅读(770) 评论(0) 推荐(0) 编辑