为什么19行不对? Function mya( ) variable m=0, n=0, sn=0 ,k=0,fd,str,a=0 ,ca,j =0,tem for m=2 to 10 for n=2 to m if mod(m,n)==0 break endif if m==n +1 tem=set_array_elem(sn,k,m) k=k+1 print("sn="+sn+" ") endif Next a=k set_array_elem(ca,[k],null)
19行以下 ca[k]=tem[k+1]-tem[k ] Next for j=1 to a print(ca ) j=j+1 next print("ca="+ca+" ") endf ___________ $>mya() Function cannot be properly be evaluated! In function mya : Line 19 : Invalid expression Wrong index!