[单项选择题] 下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是()Private Sub Command1_Cl
17 查阅
[单项选择题] 下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是()Private Sub Command1_Click()Dim count(25)As Integer,ch As Stringch=UCase(InputBox("请输入字母字符串"))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=count(k)End IfNext kPrint mEnd sub
A.0
B.1
C.2
D.3
参考答案: