数组能不能一次性初始化完毕?(已解决)
本帖最后由 zcsgamer 于 2012-9-13 15:49 编辑看了看帮助的教程部分,好像没有相关的介绍。 回复 1# zcsgamer
;简单的数组初始化演示
annybaby()
Func annybaby()
Local $test=[" aa"," bb"," cc"," dd"," ee"," ff"," gg"," annybaby@ACN"]
For $hehe=1 To 8
MsgBox(0,"第"&$hehe&"个数组元素的内容是",$test[$hehe-1]);注意这里,数组的下标是从"0"开始的!!
Next
EndFunc
Exit 回复 2# annybaby
非常感谢
页:
[1]