|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。7 s- M& a; {* q9 n5 F8 b8 H! v
写代码的话如下:
' d5 e8 }9 D! a* B: Streenode tempobject;
4 H# f2 m2 `" H& Z0 mint curmincontent = 1000000000;
, m2 {4 K8 |: T( \double curminindex = 0;
! K# Q' a6 o" ^& |2 D
$ n2 o! K2 w* [. \for (int index = 1; index <= nrop(current); index++) {$ j6 X! u" X+ V* q
tempobject = outobject(current, index);5 A6 s+ _. h0 D$ w% ^
if (opavailable(current,index) && content(tempobject) < curmincontent) {
4 w/ r! p+ L. @9 {" l curmincontent = content(tempobject);
( s8 S8 W4 I7 K1 L, {" h1 W5 ` curminindex = index;
# ?1 U& G9 Q A c% B( k }. V' F1 X7 m) Z2 M
}! E7 t1 x4 a; _( t
# h6 A7 o4 U8 h5 c9 B0 V
return curminindex ; |
|