please help me ! keep the score in c++ quiz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

please help me ! keep the score in c++ quiz

please take a look at my code i want to keep the score if the answer is correct for example you answered 5 question but only 3 is correct i want to output your score is 3 something like that how can i add this to my program https://code.sololearn.com/cvPbNRtDBqiL/?ref=app

13th Aug 2017, 3:35 AM
John Nehry C. Dedoro
John Nehry C. Dedoro - avatar
1 Answer
+ 2
In your code you write: score =+10; Correct version is: score += 10; I assume you want to add 10 to the score, not to assign +10 to it.
13th Aug 2017, 4:00 AM
deFault