Any advice would be greatly appreciated. In this program when a student receives a low score or high score, a message needs to be printed. However, I cannot seem to make the program run.
//Prototype
void Comments(Student_Data & student);
//Structures
struct Exam_Score
{
double exam[5];
string comment; // Will print good job or need to study more.
};
struct Student_Data
{
string name;
int age;
Exam_Scores exams[3];
};
int main()
{
for (int i=0; i < 3; i++){
for (int j=0; j < 3; j++){
for (int k=0; i < 6; k++){
string Comment = Comments(student[i].exams[j].exam[5]); //This is avg.
if (Comment.length() > 0)
cout << Comment << endl;
}
}
}
return 0;
}