C++ question game

Hi guys, i'm making a question based game with c++ and i was wondering a couple of things. I want the user to play the game with a different experience each time. Meaning i don't want the user to get the same questions each time he plays, i need a way to call a function that holds a question randomly, and not get a repeated question until he restarts the program. I was thinking about using an array, and each variable in the array could be a function like

array1();
array2{};

and just use a for loop to use all the questions.

Hope this makes sense, thanks for replies.
Although what your saying is possible, you have to remember that a 15 question game does not mean 15 one question games and sticking them together.

I would suggest having 2 arrays of strings. Take a random question from the first array and put it in the 2nd array, deleting the one in the first array. Repeat until you have enough questions. That's the general idea, you can expand on it to meet your requirements.
Topic archived. No new replies allowed.