用VB编程,求输入的英语句子中单词的平均长度_百度知道

  • 预览:
  • i.Text." = Mid(Text1,1个按钮

    代码,如果出现冒号或者感叹号的话.Text, i, 1) Then
    b = b + 1 "统计空格数
    End If
    If ":

    Private Sub Command1_Click()
    a = Len(Text1," = Mid(Text1, i, 1) Then
    c = c + 1 "统计逗号和句号
    End If
    Next
    MsgBox Str((a - b - c) / (b + 1))
    End Sub

    注意.Text)
    b = 0
    For i = 1 To a
    If " " = Mid(Text1.Text
    控件:1个文本框, 1) Or ",需要对c的判断条件进行一下修正
  • 地址:zhidao.baidu.com/question/543113264.html?qbl=r..on_2
  • 2016-04-23