using System;
using System.Collections.Generic;
using System.Text;
namespace WindowsApplication2
{
public class SFZH
{
private static int[] checkInt={7, 9, 10, 5, 8, 4, 2, 1 ,6, 3, 7, 9 ,10, 5 ,8 ,4, 2};
private static int[] YS = { 0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 };
private static string[] RESULT = {"1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2" };
public static bool checkNO(string no)
{
int[] outInt = new int[17];
if (no.Length != 18)
{
//System.Windows.Forms.MessageBox.Show("身份证号码必须是18位");
return false;
}
ret
using System.Collections.Generic;
using System.Text;
namespace WindowsApplication2
{
public class SFZH
{
private static int[] checkInt={7, 9, 10, 5, 8, 4, 2, 1 ,6, 3, 7, 9 ,10, 5 ,8 ,4, 2};
private static int[] YS = { 0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 };
private static string[] RESULT = {"1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2" };
public static bool checkNO(string no)
{
int[] outInt = new int[17];
if (no.Length != 18)
{
//System.Windows.Forms.MessageBox.Show("身份证号码必须是18位");
return false;
}
ret