62,265
社区成员
发帖
与我相关
我的任务
分享
MessageBox.Show( Microsoft.JScript.GlobalObject.parseInt(66, 36).ToString());
学习
string str = "66";
int ret = GetNum(str, 36);
Response.Write(ret);
int GetNum(string str, int numBase){
int i = str.Length-1;
int ret = 0;
foreach(char ch in str){
ret += Convert.ToInt32(ch.ToString()) * ((int)Math.Pow(36, i--));
}
return ret;
}