array problem

how should i create an array for this question
for example

question1 = answerA
question2 = answerB
question3 = answerC
question4 = answerA
question5 = answerA

frequent answer from the user is A

std::pair<std::string, std::string> q_a[5];
If you need to order these pairs you should use a map of the pairs listed above.
Wouldn't you just do this?
char Questions[5] = { 'A', 'B', 'C', 'A', 'A'};
Topic archived. No new replies allowed.