level 11
qiaozhanrong
楼主
这个坑爹的机制整死我了。。。
if (条件一 and 条件二) then...
如果条件一为FALSE,它仍然会继续判断条件二。。。
==========================================
这说明以下程序可能会溢出:
randomize
dim as integer a(5,5),i,j
i=int(rnd*101)
j=int(rnd*101)
a(1,1)=1
if i<=5 and j<=5 and a(i,j)=1 then
print "中大奖了!!!i 和 j 都是1!!!"
end if
sleep
end
==========================================
看出来哪儿有问题了吗?
2014年11月30日 02点11分
1
if (条件一 and 条件二) then...
如果条件一为FALSE,它仍然会继续判断条件二。。。
==========================================
这说明以下程序可能会溢出:
randomize
dim as integer a(5,5),i,j
i=int(rnd*101)
j=int(rnd*101)
a(1,1)=1
if i<=5 and j<=5 and a(i,j)=1 then
print "中大奖了!!!i 和 j 都是1!!!"
end if
sleep
end
==========================================
看出来哪儿有问题了吗?