I'm trying to print out the names of the students enrolled in the course. I have to do it through an enrollment array which is e. But the first and last name of the student is in another struct called student as well as their ID. How can I be able to search through the course and print out its roster through the enrollment array?
Well, for line 16, I had to change the e[j].name and e[j].course to c[j].name and c[j].id. So I don't have anything in enrollment that connects to the student or course structs. That's what I'm trying to figure out.
I can't help you.. I am missing some vital piece of info about how the 2 arrays are tied together. If both arrays do not contain the student ID value, and you were not instructed to do something cool like having the id number = the index in the C array, then I don't know.