Coffeehouse Post

Single Post Permalink

View Thread: I'm going back to VS2008
  • User profile image
    W3bbo

    Dr Herbie said:
    Shining Arcanine said:
    *snip*

    Line 75 has will pick up the result of the (even = !even) assignment as the condition for the ternary operator, so it will flip-flop every iteration. Nicely succinct.

     

    Herbie

     

     

    That's okay, I'll rewrite it First Year Undergraduate syntax:

     

    Brush b;

    if( even == true ) { even = false; }

    else { even = true; }

     

    if( even == true ) b = Brushes.Black;

    else b = Brushes.White;

     

    there Tongue Out