Private Sub Command1_Click()Dim count(25) As Integer,ch As Stringch = UCase(InputBox("qing shu"))For k = 1 To Len(ch)n = Asc(Mid(ch,k,1)) - Asc("A")If n >= 0 Thencount(n) = count(n) + 1End IfNext km = count(0)For k = 1 To 25If m < count(k) Thenm = co
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 11:57:19
Private Sub Command1_Click()Dim count(25) As Integer,ch As Stringch = UCase(InputBox("qing shu"))For k = 1 To Len(ch)n = Asc(Mid(ch,k,1)) - Asc("A")If n >= 0 Thencount(n) = count(n) + 1End IfNext km = count(0)For k = 1 To 25If m < count(k) Thenm = co
Private Sub Command1_Click()
Dim count(25) As Integer,ch As String
ch = UCase(InputBox("qing shu"))
For k = 1 To Len(ch)
n = Asc(Mid(ch,k,1)) - Asc("A")
If n >= 0 Then
count(n) = count(n) + 1
End If
Next k
m = count(0)
For k = 1 To 25
If m < count(k) Then
m = count(k)
End If
Next k
Print m
End Sub
m的输出值是多少 为什么呢
输入的数据是 Visual Basic Programming
Private Sub Command1_Click()Dim count(25) As Integer,ch As Stringch = UCase(InputBox("qing shu"))For k = 1 To Len(ch)n = Asc(Mid(ch,k,1)) - Asc("A")If n >= 0 Thencount(n) = count(n) + 1End IfNext km = count(0)For k = 1 To 25If m < count(k) Thenm = co
输出:3