#include #include #include #include using namespace std; const int MAX_HOMEWORK = 10; const int MAX_TEST_GRADES = 5; const int MAX_STUDENTS = 4; struct StudentT{ string name; int homeWork[MAX_HOMEWORK]; int homeworkCount; float testGrades[MAX_TEST_GRADES]; int testGradeCount; char grade; }; void PrintStudent(const StudentT & student); void FillStudent(StudentT & student); void PrintClass(const StudentT theClass[], int classSize); void FillClass(StudentT theClass[], int & classSize); int main () { StudentT myClass[MAX_STUDENTS]; int size; srand(time(NULL)); FillClass(myClass, size); PrintClass(myClass, size); return 0; } void FillStudent(StudentT & student){ int i; student.name = "Bob"; student.grade = rand() %5+'A'; if (student.grade == 'E') { student.grade = 'F'; } student.homeworkCount = rand() % MAX_HOMEWORK; for(i=0;i