struct Course
has to be above struct Student
if you want to use the former in the latter. Also, what's up with typedef
? You don't need it.
struct Course
has to be above struct Student
if you want to use the former in the latter. Also, what's up with typedef
? You don't need it.