Xambey Asked:2020-09-10 22:13:24 +0000 UTC2020-09-10 22:13:24 +0000 UTC 2020-09-10 22:13:24 +0000 UTC 十六进制数系统 772 告诉我如何将用 , 编写的十六进制数字系统中的数字转换char为int。也就是说,例如: char c = 'A'; int code = 10; // код А c# 1 个回答 Voted Best Answer Senior Pomidor 2020-09-10T22:25:52Z2020-09-10T22:25:52Z string hexValue = new String(c); 然后像这样转换 int decValue = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber); 或者 int decValue = Convert.ToInt32(hexValue, 16);
然后像这样转换
或者