下面这个Sub过程的功能是统计字符串中“a”的个数,请在空白处填上合适的代码完成程序。
Private Sub numCount( )
Dim hum As Integer
s$ = "software And hardware"
num = Len(s$)
For i = 1 To hum
b$=______
If b$ = "a" Then x = x+1
Next i
Print "x="; x
End Sub
题库:计算机等级考试
类型:填空题
时间:2017-07-03 16:53:44
免费下载:《填空》Word试卷
下面这个Sub过程的功能是统计字符串中“a”的个数,请在空白处填上合适的代码完成程序。
Private Sub numCount( )
Dim hum As Integer
s$ = "software And hardware"
num = Len(s$)
For i = 1 To hum
b$=______
If b$ = "a" Then x = x+1
Next i
Print "x="; x
End Sub
本题关键词:数字字符串,统计工作程序,四个成串刺激,面试程序,设计变更申请程序,代谢过程,腔适合程度,个体发展功能,处方销毁程序,应急处置程序;