蛤蛤,原来是优先级小游戏 😉
int x=6;
while(x-->1)printf("%d ",x);
//then we get 5 4 3 2 1
// Hidden Features and Dark Corners of C++/STL
https://groups.google.com/forum/#!msg/comp.lang.c%2B%2B.moderated/VRhp2vEaheU/IN1YDXhz8TMJ
http://www.comeaucomputing.com/tryitout/
while( x --> 0 ) // x goes to 0
if (Object *p = get_object())
p->use();
if (Object *p = get_object(), p != 0)
p->use();
while (*p++ = *q++);

No responses yet