文件名称:suxiang
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
本程序要求通过输入的身份证号码来辨识属相:
我们知道身份证号码是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