Answer to Question #30847 in C++ for Sarah

Question #30847
If I am randomizing a set of questions in an external files and I have multiple choice answers that pertain to specific questions. How do I keep them all together?
1
Expert's answer
2013-05-21T08:10:17-0400
To solve this problem we create one file which containsa question, a divider (a point or a comma) and the answer for this question.

It has such appearance: Question , answer
For example, we have a question: What is the capital of GB?1. London, 2. Berlin, ....
Correct answer is 1. London
Then, in the file we write:

What is the capital of GB? , 1

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS