|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。6 k7 C6 h5 a& ~9 j; O* I) T; L
写代码的话如下:; r, Q9 _, m8 B
treenode tempobject;
/ j' E: y8 f# i H$ sint curmincontent = 1000000000;
/ n3 \: r: M7 V+ ^. ^double curminindex = 0;
" f7 r& p: q1 a T/ C
) a- \4 ^4 w# l0 f- |for (int index = 1; index <= nrop(current); index++) {
" i2 z: n% y# w! u' E& A tempobject = outobject(current, index);
- C+ h7 @1 G6 s; W/ m$ b if (opavailable(current,index) && content(tempobject) < curmincontent) {
( `& C. W) G. w" {# I curmincontent = content(tempobject);; d' K4 k5 _' f% C
curminindex = index;
' j9 s7 `# s& n7 Y, o }
( u9 S) q, I2 B# H: A" K) N}
8 A1 T. ~$ @1 B8 N0 @
( M8 ^# y# Q8 p2 ereturn curminindex ; |
|