Search:

Type: Posts; User: kunimaro15689

Search: Search took 0.10 seconds.

  1. Re: Switch statements to initialize variable due to multiple outcomes?

    Thanks, Greg. I have defaulted the answer to 0 and that is always the result when I run the game. This leads me to believe that my second switch statement is a bit wrong. In the first I use random...
  2. Re: Switch statements to initialize variable due to multiple outcomes?

    The threads you merged were the only two.
  3. Using variables initialized in a switch statement.

    I am making a math game that asks the user elementary questions.I have no errors. The answer variable was to be initialized in my second switch statement with the value 0 being default for the...
  4. Switch statements to initialize variable due to multiple outcomes?

    I made a math game with the variable "answer" being the actual answer. But the actual answer is dependent upon the math question. Can I use a switch statement to initialize the variable and map it to...
  5. Re: Initializing answer variable.

    Well if it is trouble to you,do not respond. It will only cause more trouble for you.
  6. Initializing answer variable.

    After this problem is fixed, my math game will run. The answer variable is supposed to be equal to the cases in the second switch statement by random but I get errors whenever I try to initialize it...
Results 1 to 6 of 6