b = 5
k = 0: imax = 0
For i = 1 To 20
If a(i) = b Then
k = k + 1
If ⑴ Then
imax = k
⑵
End If
Else
k = 0
End If
Next i
Label1.Caption = "最大长度:" +Str(imax) +",起始位置:" + Str(st)
划线处可选代码为:
①k > imax ② k >= imax ③ st = i - imax + 1 ④ st = i
下列选项中,代码顺序正确的是( )