cout << "question?\n";
getline(cin,answer1);
for (int i=0; i < 5 ; i++){
if (correct[i]==answer1)
cout << "do something!!\n\n";
else{
cout << "do something!!\n\n";
}
}
it was just down to bracket placement, i think this will work im sort of busy at the same time so if theres a mistake just let me know. you had placed the else statement outside of the for loop.
Chris