找回密码
 注册
Simdroid-非首页
查看: 57|回复: 0

[命令/FISH] 大家帮找一下错误

[复制链接]
发表于 2014-11-18 09:37:59 | 显示全部楼层 |阅读模式 来自 北京
这是一个定义数组并输出数组的命令,运行总提示错误,什么原因,求解
new
def afill ;fill matrix with random numbers
array var(4,3)
  loop m(1,4)
    loop n(1,3)
       var(m,n) = urand
    endloop
   endloop
end

def ashow ;display contents of matrix
  loop m(1,4)
    hed = ' '
    msg = ' '+ string(m)
    loop n(1,3)
       hed = hed + ’’+ string(n)
       msg = msg + ’’+ string(var(m,n))
    endloop
    if m = 1
      dum = out(hed)
    endif
    dum = out(msg)
  endloop
end

afill
ashow

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-24 00:31 , Processed in 0.027961 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表