蛤蛤,原来是优先级小游戏 😉

    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++);

Categories:

Tags:

No responses yet

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

近期评论
归档
分类