gpt4 book ai didi

VB.Net 的下一个目标

转载 作者:行者123 更新时间:2023-12-02 05:44:47 25 4
gpt4 key购买 nike

这两者有区别吗?

For i = 0 To Something.Length - 1
'do something
Next

For i = 0 To Something.Length - 1
'do something
Next i

最佳答案

这只是为了可读性:

You can optionally specify counter in the Next statement. This improves the readability of your program, especially if you have nested For loops. You must specify the same variable as the one that appears in the corresponding For statement.

来自http://msdn.microsoft.com/en-us/library/5z06z1kb.aspx

关于VB.Net 的下一个目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5297656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com