能力值:
( LV2,RANK:10 )
|
-
-
2 楼
现在有这段代码,谁能翻译成C语言?谢谢!
private void Window_Loaded(object sender, RoutedEventArgs e) {
SGFFile.Text = sgf_string = File.ReadAllText("1.sgf"); }
private void Button_Click(object sender, RoutedEventArgs e) { string[] lines = sgf_string.Split(';') ; foreach (var i in lines) { if(i.StartsWith("B") || i.StartsWith("W") ) { string a = i.Substring(2).Remove(2); string x = a.Remove(1); if(System.Text.Encoding.ASCII.GetBytes(x)[0]> System.Text.Encoding.ASCII.GetBytes
("l")[0]) { byte[] array = new byte[1]; array[0] = (byte)(Convert.ToInt32(System.Text.Encoding.ASCII.GetBytes(x)[0] 1)); x = Convert.ToString(System.Text.Encoding.ASCII.GetString(array)); } string y = a.Substring(1); y = (System.Text.Encoding.ASCII.GetBytes("s")[0] -
System.Text.Encoding.ASCII.GetBytes(y)[0] 1).ToString();
decode = decode x y ","; }
} decode = decode.Remove(decode.Length-1,1);
SGFDecode.Text = decode; } }
|
能力值:
( LV1,RANK:0 )
|
-
-
3 楼
很棒呀
|
|
|