关于Vb语言编写的程序
SubMainDimx(5)AsIntegerDimiAsIntegerfori=0to5x(i)=inextiPrintiJoe(i),x‘()强制i进行值传递prin...
Sub Main
Dim x(5) As Integer
Dim i As Integer
for i = 0 to 5
x(i) = i
next i
Print i Joe (i), x ‘ () 强制 i进行值传递
print "should be 6: "; x(2), i
End Sub Sub
Joe( ByRef j As Integer, ByRef y() As Integer )
print "Joe: "; j, y(2)
j = 345
for i = 0 to 5
print "i: "; i; "y(i): "; y(i)
next i y(2) = 3 * y(2)
End Sub
求解翻译这段程序的意义 展开
Dim x(5) As Integer
Dim i As Integer
for i = 0 to 5
x(i) = i
next i
Print i Joe (i), x ‘ () 强制 i进行值传递
print "should be 6: "; x(2), i
End Sub Sub
Joe( ByRef j As Integer, ByRef y() As Integer )
print "Joe: "; j, y(2)
j = 345
for i = 0 to 5
print "i: "; i; "y(i): "; y(i)
next i y(2) = 3 * y(2)
End Sub
求解翻译这段程序的意义 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询