Hello,
I am very new to C++ and I need some help. My problem is probably simple for you, but for me...it's quite a challenge and I can't seem to find a solution...
So to explain my situation:
I want to program a question/answer quiz. If the person's answer is right they move on, and if the person's answer is wrong, they have a choice to try again.
And that's when I run into problems. How can I program it that when I ask if they want to try again and they say yes, that it goes back to the original question?? I don't want to write the same question again all the time.
Use a function to ask the question. Pass the question, answers, and correct answer as arguments. The function can give the user a number of tries and return when done with a score. Then all you have to do is call the function once for each question and tally all the results.
I appreciate your reply and help...except I don't really understand. I am very new to C++, so I am really confused. Could you explain it a bit differently? Could you maybe give me some sort of example, if you can?