文件名称:suxiang
-
所属分类:
- 标签属性:
- 上传时间:2013-12-31
-
文件大小:38.99kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本程序要求通过输入的身份证号码来辨识属相:
我们知道身份证号码是18位的,通过字符串的方式读入身份证号码,如果长度不是18位,提示输入的长度有误,然后提取号码中第7-10位的年份段,我们通过判别字符的范围来辨别有没有输入非数字的字符,如果有非数字的字符,判别年份段有误。通过取余运算来看属相是否正确。-This program requires through input id number to identify the animal sign:
We know that id number is 18, read by means of a string id number, if the length is not 18, suggest the length of the input is wrong, then extract the number 7-10 year period, we did by judging character to identify the range of input non-numeric character, if there is a non-numeric characters, discriminant year section is wrong.To see the animal sign is properly by taking over operations.
我们知道身份证号码是18位的,通过字符串的方式读入身份证号码,如果长度不是18位,提示输入的长度有误,然后提取号码中第7-10位的年份段,我们通过判别字符的范围来辨别有没有输入非数字的字符,如果有非数字的字符,判别年份段有误。通过取余运算来看属相是否正确。-This program requires through input id number to identify the animal sign:
We know that id number is 18, read by means of a string id number, if the length is not 18, suggest the length of the input is wrong, then extract the number 7-10 year period, we did by judging character to identify the range of input non-numeric character, if there is a non-numeric characters, discriminant year section is wrong.To see the animal sign is properly by taking over operations.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
身份证读属相/
身份证读属相/test.c
身份证读属相/test.exe
身份证读属相/说明.doc
身份证读属相/test.c
身份证读属相/test.exe
身份证读属相/说明.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.