|
|
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
Ex: How many atoms does Helium have? |
Type
could be any type Answer ans(2, true); //
options
|
|
vector<Question> questions
then getting random number of them is as simple as randomly generating random unique n numbers and then get them from the vector with questions.at(randomPosition).EmperorRookie wrote: |
---|
I agree that multiple choice provides an opportunity for luck which while may be good for your grade isn't really the reason someone goes to "learn" something (Chemistry). |
If you know Generic programming, this class will be a template so that Type could be any type |
|
|