Quiz Program

Hi,

I am working on a program. There is a .txt file that has quiz questions, multiple choice answers and what the correct answer is.

I have figured out how to read the entire thing from the file but need help on how to tackle the rest of it.

I want only the question/s and answers to show up, and when the user enters his/her answer, the correct answer then shows up?

Any ideas how to get round this?

cheers
You show one question and its options. Then you get user input. Depending on input you tell whether the user answered correctly.

Repeat for every question.
but it has to be from an external txt file
Conceptually, that is irrelevant.

The file has a list of entries. You read the entries into list in memory. Then you use entries from the list, one by one.

Reading from a file does not mean that anything is printed to std::cout.
Topic archived. No new replies allowed.