I'm trying to get this program to only ask if the user would like another question after the 5th correct answer. I think I'm a ways off. Can anyone walk me through the steps to doing this?
the 5 questions section is a mess.
if(condition); does nothing conditionally. the ; is wrong. ; is a do-nothing statement when it does not terminate a proper statement. for(things); while(condition); if(conditon); etc are all usually** wrong, no ; on that type of statement.
(line 25)
and your if there has no {} so the cin isnt tied to the prompt for it.
and choice has no initial value.
I would init choice to y, lose the ; and put {} around the prompt and cin for choice, see if that gets you close.
** you can have a reason to do it, like a self contained for loop.