Dim I As Byte,J As Byte,K As StringOpen App.Path & "\WORLD " & Text1.Text & ".nes" For Binary As #1For I = 1 To 175Get #1,CLng("&HD66" + I),JIf J >= 10 And J < 190 ThenJ = J + 55K = K & Chr(J)ElseK = K & Str(J)End IfNextClose #1Text2.Text = K

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 03:36:19

Dim I As Byte,J As Byte,K As StringOpen App.Path & "\WORLD " & Text1.Text & ".nes" For Binary As #1For I = 1 To 175Get #1,CLng("&HD66" + I),JIf J >= 10 And J < 190 ThenJ = J + 55K = K & Chr(J)ElseK = K & Str(J)End IfNextClose #1Text2.Text = K
Dim I As Byte,J As Byte,K As String
Open App.Path & "\WORLD " & Text1.Text & ".nes" For Binary As #1
For I = 1 To 175
Get #1,CLng("&HD66" + I),J
If J >= 10 And J < 190 Then
J = J + 55
K = K & Chr(J)
Else
K = K & Str(J)
End If
Next
Close #1
Text2.Text = K

Dim I As Byte,J As Byte,K As StringOpen App.Path & "\WORLD " & Text1.Text & ".nes" For Binary As #1For I = 1 To 175Get #1,CLng("&HD66" + I),JIf J >= 10 And J < 190 ThenJ = J + 55K = K & Chr(J)ElseK = K & Str(J)End IfNextClose #1Text2.Text = K
好像是把文本1的文字加密后存入文本2