设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5943|回复: 4

[求助] 有关methods中的rework问题

[复制链接]
发表于 2008-4-7 17:38:59 | 显示全部楼层 |阅读模式
5仿真币
为什么我按pituo的if,else的编程输入,却老是告诉我rework的编程是错的呢,, 拜托大哥大姐帮帮我! 谢谢
发表于 2008-4-8 09:22:42 | 显示全部楼层
把你的程序写上来
 楼主| 发表于 2008-4-8 15:56:27 | 显示全部楼层

programm

is ) N3 Z( e. t/ {; e$ D: l
do
" P8 O: ~' ]! f+ `0 \       counter := counter + 1;
( |. R% O7 ?! j0 ~       print  counter;
9 {1 D( q: i' I
* [# k6 v& r) F. v( a+ u, f       if counter = 10, y+ K" M, }! i9 g
       then @.quality := "bad";1 ~2 o& T& t- c& H: J0 u
              counter := 0;
  u: G3 v  I9 U3 ~+ M       else  @.quality := "GOOD";    # _; O: _0 r8 }
       end;
) ]5 P9 J4 L9 e- n
6 {9 U6 v1 m/ y      print  @.quality;  L* o( n7 Y# ~: u7 y4 _& n
             @.move; - c/ U* s& {9 Z: l
end;9 D7 d+ \9 ~. R( Z- d" m+ Q1 Q

. A$ y6 c% z8 h! a8 s. i7 h: b. _/ H: Lelse  @.quality := "GOOD";    这一行老是出错,说是找不到quality, 我不知道,这里到底哪不对了,谢谢你的帮忙啊!
 楼主| 发表于 2008-4-8 17:22:07 | 显示全部楼层

thanks

I found the answer, the programm is crazy!
 楼主| 发表于 2008-4-8 17:23:37 | 显示全部楼层

hehe

之前我已经定义好了的,不过,现在的问题解决了! 谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-7-10 07:35 , Processed in 0.013123 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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