设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4206|回复: 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 % a9 F- d  R7 s/ E9 f
do 8 o5 Z8 Z( l, l. T! E
       counter := counter + 1;) O) M- B8 u( y# j! W" A" X
       print  counter;
  _5 X7 F+ Q1 C/ Z# [
+ h5 u' j# T, H' I0 P5 [       if counter = 10
* [4 f& f4 Y3 C$ }       then @.quality := "bad";
7 Q& z" x6 p2 q8 Q              counter := 0;
1 o2 _& c( C5 B       else  @.quality := "GOOD";   
6 R4 t4 E- Z. K2 g9 S       end;" Z( f5 A. e7 h/ @

5 P9 Z9 _6 E- Y' l7 m: j7 `      print  @.quality;1 W* Z+ d9 M4 s) ~$ u, s& K
             @.move; 3 ]1 f$ R4 }# d# I. G2 t
end;
" C; d* ?/ P( G% s2 O% d7 |: D" m( u
else  @.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, 2024-5-21 02:44 , Processed in 0.011887 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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