|
|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。 F( u1 n* l- W: I. k! D" D
写代码的话如下:7 |8 a# I$ T$ L/ \2 C0 d
treenode tempobject;
! `' ^, Q( K a7 x) z, d* wint curmincontent = 1000000000;
: z" n: d# r7 ~# Vdouble curminindex = 0;0 u! o1 n2 n! T, ]/ u' U7 D
; H0 |2 ?' O& g) [" c
for (int index = 1; index <= nrop(current); index++) {( P& ~9 n1 T- \1 e6 d$ l; A
tempobject = outobject(current, index);6 F5 }3 {3 H Q! ]
if (opavailable(current,index) && content(tempobject) < curmincontent) {1 P9 E0 v0 o: a; t! V; M
curmincontent = content(tempobject);
/ C' ?* g' x) {6 y5 h+ ?8 X curminindex = index;
' z8 w1 y9 Q5 A' r7 L }
: X1 p% g6 ~+ J3 L0 n# w6 U}
3 R1 G& x/ f3 J
4 r* U+ ] d4 [ ?4 Lreturn curminindex ; |
|