|
不想写代码得话可以在临时实体流中发送至端口选项卡直接设定。( X1 ^/ ? j* n
写代码的话如下:
4 K1 D, U& ]" ~# m& Qtreenode tempobject;
6 s; w* {/ C! h( `int curmincontent = 1000000000; ) }# R0 ]) q' }5 k
double curminindex = 0;
* c m# e* D1 {- x9 _ o
) Q$ J& r$ d* k# T2 }' I4 n# Dfor (int index = 1; index <= nrop(current); index++) {
) d1 h9 t7 y9 e0 a tempobject = outobject(current, index);3 _2 F! @2 f+ c0 e1 D
if (opavailable(current,index) && content(tempobject) < curmincontent) {
3 e4 }) O' n! ~ O curmincontent = content(tempobject);9 O* b& s; Z" L) r4 L+ i
curminindex = index;6 i6 J( U( T: k' o) k5 a9 R0 n5 Z3 P! m
}
. B ]& O: R7 L}$ a7 U# k+ x) @ K1 c
: T6 f6 \0 g' n7 _
return curminindex ; |
|