Search:

Type: Posts; User: Norm

Search: Search took 0.37 seconds.

  1. Replies
    5
    Views
    619

    Re: Problem with nested switch code.

    Yes that is one way.
    Another is to use an enum


    Yes that could work.
    To flip a boolean use the ! operator: bool1 = !bool1; // flip the boolean
  2. Replies
    5
    Views
    619

    Re: Problem with nested switch code.

    What do you expect to happen after the message: Green ball selected. is printed?
    What values in what variables do you expect to control the program's execution flow?
    Do those variables have the...
Results 1 to 2 of 2