展开全部
Private Sub Command1_Click()
Dim a(1 To 26)
stri = Text1.Text
For i = 1 To Len(stri)
s = Mid(stri, i, 1)
If s >= "a" And s <= "z" Then
k = Asc(s) - Asc("a") + 1
a(k) = a(k) + 1
End If
Next i
stri = ""
For i = 1 To 26
If a(i) <> 0 Then
stri = stri & Chr(i + Asc("A") - 1) & "=" & a(i) & " "
End If
Next i
Text2.Text = stri
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |