题型:综合题 题类:模拟题 难易度:困难
浙江省温州市2018届高三下学期信息技术3月适应性考试(二模)试卷
Private Sub Command1_Click()
Dim s As String, tmp As String, c As String
Dim n As Integer, i As Integer
Dim flag As Boolean
Dim cnt As Integer '存储符合条件的单词数
s = Text1.Text
n = Len(s)
flag = False
List1.Clear
For i = 1 To n
c = Mid(s, i, 1)
If c >= "a" And c <= "z" Or c >= "A" And c <= "Z" Then
If c = Text2.Text Then flag = True: cnt = cnt + 1
Else
If flag Then List1.AddItem tmp
tmp = ""
End If
Next i
If cnt = 0 Then
List1.AddItem "找不到符合条件的单词."
End If
End Sub
位置 |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
数据 |
64 |
67 |
45 |
145 |
|
269 |
|
|
|
119 |
1275 |
试题篮