1个回答
展开全部
'应该是这样的。朋友
Option Explicit
Private Sub Form_Load()
Me.AutoRedraw = True
Dim strarr()
Dim strtemp$
Dim i As Byte, ilen As Byte
strarr = Array("c", "i", "s", "a", "b")
ilen = UBound(strarr)
For i = 0 To ilen \ 2
strtemp = strarr(i)
strarr(i) = strarr(ilen - i)
strarr(ilen - i) = strtemp
Next
Print Join(strarr)'结果是:basic
End Sub
Option Explicit
Private Sub Form_Load()
Me.AutoRedraw = True
Dim strarr()
Dim strtemp$
Dim i As Byte, ilen As Byte
strarr = Array("c", "i", "s", "a", "b")
ilen = UBound(strarr)
For i = 0 To ilen \ 2
strtemp = strarr(i)
strarr(i) = strarr(ilen - i)
strarr(ilen - i) = strtemp
Next
Print Join(strarr)'结果是:basic
End Sub
更多追问追答
追问
没有输出结果吗
就是输出结果多少
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询