Hey, basically I'm trying to read a user's input from a textbox and define that input as an integer. The problem I'm having is I get this error when I run the code: http://gyazo.com/ec464cd6ab07d090fc2a7650a1670021
That worked in removing the error, but now I have another problem, when I answer the question correctly (correct being defined by firstNum+secondNum) the score isn't incremented so the if statement isn't executed.
Updated Code
No error, the code just skips the if statement even though I'm meeting it's requirements. Here is the exact same concept in console c++. It works perfectly:
Tried that also, still didn't fix it. However if I change Line 21 to: Correct = 1; And then input 1 to the textbox it increments the score and does what it's supposed to. So I believe the problem lies in line 21. Any ideas?
Can you PM the project in a ZIP file to me, first I am interested in playing the game, I have trouble with quick math, second, it will make it easier for me to search for problems.