提问(已解决)
有如下的VB代码,各位能否帮我解释下为什么S=6?拜托了。
Private Sub Form_Load()
Dim s As Integer, i As Integer
i = 0
Do
s = i + s
i = i + 1
Loop Until i >= 4
MsgBox s
End
End Sub
用户系统信息:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)