( U6 P6 y9 R/ J1 J o
啊没事了,我发现哪里出问题了。if后面少加了一个()。
" J$ [0 L9 m# e: v" X这样子就可以实现了
9 B/ ~6 c. M( b( x! ~0 Mtreenode item = parnode(1);5 \( f7 `: K, Y% l' h3 f" ?
treenode current = ownerobject(c);% R1 m0 f$ a( Q' ^# J/ @/ n# z9 e! w
/**默认分解器选项*/1 q7 e2 P0 H) [
if(getvarnum(current,"unpack")), {9 f; _8 m; t
{# x& b M, t, f0 _* L( Y
if(getrank(parnode(1)) == 1)- d1 |. z0 K8 a Q8 R+ \2 J
return 1;
: _. H/ [% f/ M% g# y6 v else
: H8 `- I$ x; L$ G8 j+ ` if (content(outobject(current, 2))<getvarnum(outobject(current, 2),"maxcontent")) E5 b5 F) X# v3 H+ O1 f& ]/ t
return 2;
& |; B4 |$ E% O3 l& S if (content(outobject(current, 2))==getvarnum(outobject(current, 2),"maxcontent"))
1 G( w3 D) A2 {" }$ b( c0 x' C return 3;
1 ]3 u- e" N% a) l}) G( W g2 M2 T4 I1 `
else$ C! q8 o g3 E3 o9 f
return 0; |