|
模仿了一个例子 ,按照书上一步一步做出来 可是出现问题了,求解答?& V0 X8 H' G& d( n5 E8 \
is
3 z, }! _' Q$ D- o, }/ w$ q/ bdo% `% R: ~: _( x1 D/ }4 N9 U/ c# y
counter := counter+1;
' e1 p$ V! D4 R4 n( G0 T; m+ P# [ print counter;; T( e) ?# s5 e l1 N( T
4 J) H+ j* Z5 g8 V0 E0 u; S9 R
if counter = 10 then/ x: _. [6 N6 G8 B- {6 M+ z
@.quality := "BAD";
2 F4 u2 l9 w. M counter := 0;8 o. n- a, b7 r6 J2 x3 Z( J3 @
else
* l+ q5 M* E. |- h- D# O @.quality := "GOOD"
! n2 {2 b8 p5 w3 Y3 g R) [ end;
5 H( N/ A5 R8 F2 q( z& o! S 1 p9 i7 C6 x7 x9 T' z
print @.quality;
4 n+ ?* @1 G* `$ I# G1 S @.move;" t, k# L/ z! A" R8 C2 q* ^# w; B1 X
end;; k7 |3 H" a5 v% j
' {& k: F W7 d8 M: ~! C出现问题说出错:‘VOID’无法接受方法‘quality’是为什么? |
|