设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6731|回复: 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
* D' b0 p  d+ Z% edo ( M0 l( S( l. Z& h: `# l6 ]
       counter := counter + 1;( y1 B( {  m& ?8 H8 z" N
       print  counter;
7 n" V2 K+ l1 @2 X- a/ o3 A
# P6 o+ D/ I( N/ ~! q7 f3 D       if counter = 10
, L0 J7 Q; ~" Q1 Y: W% o       then @.quality := "bad";
9 A; P0 f! a& h+ b. A              counter := 0;
+ d) s4 _8 {- e) U       else  @.quality := "GOOD";    2 k! q' s' u2 b5 t
       end;( V6 P" t  Q* d) o* ~
+ ?$ P, g1 ]  X. A
      print  @.quality;6 N! V0 E7 A7 L* o  i
             @.move;
1 v! ]  {: a' o- r3 {; c end;
; h% n$ M, v( v& E
- r  U/ N$ V7 Xelse  @.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-10-27 17:05 , Processed in 0.014494 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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