The fifteen ID number turns 18th

zhaozj2021-02-16  90

PRIVATE? STRING? Convert15to18 (string? strTemp) {int []? arrit? =? new? int [] {7,? 9,? 10,? 5,? 8,? 4,? 2,? 1,? 6 ,? 3,? 7,? 9,? 10,? 5,? 8,? 4,? 2}; String? Arrch = "10x98765432"; int? Ntemp? =? 0; if (strTemp.Length == 15 ) {straTemp? =? strTemp.substring (0,6)? ? "19"? ? straTemp.substring (6, strtemp.length-6); for (int? i? =? 0;? i?

{ntemp? =? int.parse (strtemp.substring (i,? 1) .tostring ())? *? arrint [i];} strTemp? =? arrch [ntemp?%? 11] ;?} char ? DD = arrch [ntemp?%? 11];? Return? strTemp;

转载请注明原文地址:https://www.9cbs.com/read-11657.html

New Post(0)