What do I think the main function does?

  1. It looks like it starts by having you enter difficulty level with the question “you are a secret agent breaking into a level _ secure server room.”

  2. It then generates the integers for the puzzle using random function.

  3. Next uses an if statement and calculates if the answer the secret agent entered was correct. If it was correct it uses cout print statement to print and tell you your answer was correct. And uses else statement if it was incorrect and tell you that.

  4. Uses while statement to loop the game through each level until max difficulty is reached and then tells you good job you beat the game.

Oops I said what I thought the whole thing did hah. The main I think just runs each time you begin, it uses the srand function to generate the random numbers for the puzzle. ??

Privacy & Terms