|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。: S7 v/ B# c0 R1 i" T" b% Y' Q
写代码的话如下:5 b8 @4 r) z; M1 ~' j; A# R; s
treenode tempobject;7 ~4 o8 C) L: v% m8 b, Z* x+ B7 o E
int curmincontent = 1000000000;
) W6 k. D1 }6 ydouble curminindex = 0;9 Y8 l5 b2 ^: @/ W% l2 Q
0 T& g+ S5 q7 a" ]5 Lfor (int index = 1; index <= nrop(current); index++) {
9 u, B/ S9 H# S7 n- |* T1 _- C tempobject = outobject(current, index);8 w, X" v: `" Q! e" w8 {7 m* H
if (opavailable(current,index) && content(tempobject) < curmincontent) {4 S$ K; ]5 R* S' ~! G$ K
curmincontent = content(tempobject);
/ |& ^& b+ t! B/ [! J curminindex = index;8 k+ y a6 D, e0 G2 M5 r
}6 _" I `+ R) e9 P C0 ^# L
}
$ x* g5 l" w& \. Q* q
) w! C5 |$ W: k) F( o. P( w freturn curminindex ; |
|