//36进制转10进制
public static int int36Convert10(string str)
{
int d = 0;
int b;
char[] ch = str.ToCharArray();
int j = 0;
for (int i = ch.Length – 1; i >= 0; i–)
{
char c = ch[i];
b = 1;
for (int t = 0; t < j; t++)
b= b * 36;
j++;
int cc;
if (c >= \’0\’ && c <= \’9\’)
cc = Convert.ToInt32(c) – 48;
else
cc = Convert.ToInt32(c) – 65 + 10;
d += cc * b;
}
return d;
}