Define a structure called Class with the following data:
title (class title), units (number of units) and grade (letter grade received for the class).
Define a structure called Student with the following data:
name (for student name - can include spaces), gpa, and classes which is an array of Class structures (all classes the student has taken.
Write a function that receives an array of Student structures and sets the gpa of all to 0.0.
i do not know how to set the gpa of all students to 0.00
THIS IS WHAT I HAVE TO FAR:
#include <iostream>
#include <string>
struct Class
{ char class_title[10];
int units;
char let_grade;
};
struct student
{ char name[30];
float gpa;
Class classes[50];
};
void sets ([]);
int main()
{
cout << "Ener student name: " << i << endl
system ("pause");
return 0;
}
void sets (s[])
{
for (int i=0; i<=s[], i++);
return 0;
}