vb题目,求解答
2个回答
展开全部
Dim a As String
Dim i As Integer
Dim temp As Integer
a = text1.Text
For i = 1 To 26
temp = 0
For j = 1 To Len(a)
If Mid(a, j, 1) = Chr(64 + i) Or Mid(a, j, 1) = Chr(89 + i) Then
temp = temp + 1
End If
Next j
If temp <> 0 Then
list1.AddItem Chr(64 + i) & "出现了" & CStr(temp) & "次。"
End If
Next i
Dim i As Integer
Dim temp As Integer
a = text1.Text
For i = 1 To 26
temp = 0
For j = 1 To Len(a)
If Mid(a, j, 1) = Chr(64 + i) Or Mid(a, j, 1) = Chr(89 + i) Then
temp = temp + 1
End If
Next j
If temp <> 0 Then
list1.AddItem Chr(64 + i) & "出现了" & CStr(temp) & "次。"
End If
Next i
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询