题型:综合题 题类:常考题 难易度:困难
浙江省慈溪市三山高级中学2018-2019学年高二下学期信息技术第一次月考试卷
图a
图b
Private Sub Command1_Click()
Dim s As String, c As String, tmp As String
Dim i As Integer, cnt As Integer
Dim flag As Boolean
cnt=0 : flag = True
List.Clear: s = Text1.Text: Text1.text=""
For i = 1 To Len(s)
ch = Mid(s, i, 1)
If ch >= "0" And ch <= "9" Then
tmp = tmp + ch
If Len(tmp) > 1 Then
If ① Then flag = False
End If
Else
If flag Then
List1.AddItem tmp: cnt = cnt + 1
Else
flag = True
End If
tmp = ""
End If
Next i
If flag Then List1.AddItem tmp: cnt = cnt + 1
If ② Then Text2.Text = "找不到" Else Text2.Text = Str(cnt)
End Sub
① ②
“11 456 7 4443 488 666666”,单击“筛选密码”按钮,文本框Text2中显示的内容是。
试题篮