I have built a simple flashcard like console program to help me study. What I would like to do with it now is to make the questions I get wrong come up more frequently.
Can anyone point me in the direction of some code examples or tutorials on how to do this kind of thing?
To give a brief description, I read in each of the sets of data into separate vectors and randomly generate a multiple choice question with random incorrect answers.
You could add a "primary" random number generator that will have a probability (let's say 0.3) of diverting the program flow to read from another vector or set of vectors containing questions you got wrong in place of the usual generation routine, and change the system so that if you get a question wrong, there's a chance that it will be pushed onto that vector.