// Introduction and Explanation to the program for the user.
Exam_Intro();
// Answers of Student.
cout<< "Please type in the answers of your student:"<<endl;
// For loop to cycle through all 20 questions
// and put each question in the array element.
for (int count=0; count<Teachers_Array; count++)
{
cout<<"Question #"<<(count+1)<< ". ";
cin>>(Student_Exam [count]);
cin.ignore();
}
// For loop using toupper to cycle through
//each element and make it an uppercase.
for (int x=0; x< Student_Array; x++)
{
Student_Exam[x]= toupper (Student_Exam[x]);
}
return 0;
}
So I think I corrected my toupper problem, but I was now wondering how to make this program not recognize letters other than A, B, C, D. I keep trying to use the while loop for that but I keep getting errors
while( Student_Exam != 'A' && Student_Exam != 'B' etc...) it says that I'm comparing two different types of char