题型:综合题 题类:常考题 难易度:普通
浙江省温州市“十五校联合体”2018-2019学年高二上学期信息技术期中联考试卷
程序代码中,语句加框处有错,请改正。
Private Sub Command1_Click()
Dim s As String, sum As Integer
Dim i As Integer, j As Integer
List1.Clear
s = Text1.Text
n = len(s)
’(1)
For i = 1 To n
For j = 1 To n-i+1
List1.AddItem ’(2)
sum = sum + 1
Next j
Next i
List1.AddItem "总共有" + Str(sum) + "个子串"
End Sub
⑴ ⑵
试题篮