如何把如下VB代码改为C#代码? ( 积分: 20 )

  • 主题发起人 主题发起人 gxpcw
  • 开始时间 开始时间
G

gxpcw

Unregistered / Unconfirmed
GUEST, unregistred user!
Private Function tobcc(s As String) As String
t = 0
For i = 1 To Len(s)
t = t Xor Asc(Mid$(s, i, 1))
Next i
tobcc = Right$("0" + Hex$(t), 2)
End Function
 
Private Function tobcc(s As String) As String
t = 0
For i = 1 To Len(s)
t = t Xor Asc(Mid$(s, i, 1))
Next i
tobcc = Right$("0" + Hex$(t), 2)
End Function
 
public string tobcc (string s)
{ }
给分好了
 
楼上的做法出错!
 
using System;
 
后退
顶部