level 2
cyycoish
楼主
Dim pl As String
Dim tpl As String
Dim tpl2 As String
Dim i As Integer
Cls
Do
Input pl
If pl="e" Then
Exit Do
End If
For i=1 To Len(pl)
tpl=Mid$(pl,i,1)
Select Case tpl
Case "1"
tpl="c"
Case "2"
tpl="d"
Case "3"
tpl="e"
Case "4"
tpl="f"
Case "5"
tpl="g"
Case "6"
tpl="a"
Case "7"
tpl="b"
Case Else
Print "Error"
Exit For
End Select
tpl2=tpl2+tpl
Next
Cls
Play tpl2
tpl2=""
Loop
2010年07月29日 06点07分
1
Dim tpl As String
Dim tpl2 As String
Dim i As Integer
Cls
Do
Input pl
If pl="e" Then
Exit Do
End If
For i=1 To Len(pl)
tpl=Mid$(pl,i,1)
Select Case tpl
Case "1"
tpl="c"
Case "2"
tpl="d"
Case "3"
tpl="e"
Case "4"
tpl="f"
Case "5"
tpl="g"
Case "6"
tpl="a"
Case "7"
tpl="b"
Case Else
Print "Error"
Exit For
End Select
tpl2=tpl2+tpl
Next
Cls
Play tpl2
tpl2=""
Loop