摘要:
#include <stdio.h>int main(){ int a = 0; a = judged("8613775669854"); printf("%d\n",a);}int judged(char *str){ if(strlen(str)!=13 ) //手机号不为13 { return 1; } int i = 0; for(i = 0; i<13; i++) { if(str[i]<'0'|| str[i]>'9') //手机号中有非法字符 { return 2; ... 阅读全文
posted @ 2012-10-23 11:13
qingjoin
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号