会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
likeghee
博客园
首页
新随笔
联系
管理
订阅
2018年11月8日
查验身份证 (15 分) 一个合法的身份证号码由17位地区、日期编号和顺序编号加1位校验码组成。校验码的计算规则如下: 首先对前17位数字加权求和,权重分配为:{7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2};然后将计算的和对11取模得到值Z;最后按照以下关系对应Z值与校验码M的值:
摘要: // test4.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。// #include "pch.h"#include <iostream>#include <cmath>using namespace std; int quanz[17] = { 7,9,10,5,8,4
阅读全文
posted @ 2018-11-08 00:17 likeghee
阅读(14003)
评论(0)
推荐(0)
编辑
公告