关于eprime中的basic语言编程小问题 20
dimnumlengasstringdimi,num(2)asintegernumleng=c.Getattrib("numlen")[numlen=10,100,100...
dim numleng as string
dim i,num(2) as integer
numleng=c.Getattrib("numlen") [numlen=10,100,1000]
for i = 0 to 2
numb(i)=random(val(numleng),val(numleng)*10)
next
num1.text=str(num(0))
num2.text=str(num(1))
num3.text=str(num(2))
请问为什么在这样一个程序中,需要对num(2)定义而不用再定义num(0)和num(1) 展开
dim i,num(2) as integer
numleng=c.Getattrib("numlen") [numlen=10,100,1000]
for i = 0 to 2
numb(i)=random(val(numleng),val(numleng)*10)
next
num1.text=str(num(0))
num2.text=str(num(1))
num3.text=str(num(2))
请问为什么在这样一个程序中,需要对num(2)定义而不用再定义num(0)和num(1) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询