设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6822|回复: 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 ( m( D. K! H2 s7 r- r5 K+ b  d7 Y& |
do
1 I/ N3 m- ]# G4 ?+ \+ ~       counter := counter + 1;( j9 R8 J1 H$ a! _- M* N
       print  counter;
% w5 J1 P4 o4 g/ N) s/ o/ [& {  K4 e) l/ c' q
       if counter = 10, |( P4 V" d4 F! ]; A
       then @.quality := "bad";: o) G$ e3 M0 W* u: [# F/ f9 T
              counter := 0;
6 s# [+ l' T' b* R8 d       else  @.quality := "GOOD";    3 H! N3 V& L& b
       end;
" A- q# l/ z1 p. j3 L, L8 z2 s
7 P' k6 a2 S) m3 v/ l1 H, e9 [      print  @.quality;- S+ x) f+ b3 ]9 E0 y" @
             @.move; # C$ c1 {* ^, Y7 k8 {! Q# B# n. i
end;& \" s: l' o9 \6 l+ c5 c! B

! Z' Y+ n% M8 }6 G5 |$ V- Delse  @.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-11-6 22:14 , Processed in 0.012503 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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