i have implemented an array of structures, and stored student data such as, name, age, sex, course, location, and p/t or f/t.
i now wish the user to enter a course, and for it to display all students on that course, but, only if they are f/t.
how do i take the user input and compare it to the information i have stored in the array? and only display the students that are f/t?
something along the lines of...
printf("Enter course");
scanf("%s", SelectedCourse);
int course(struct student class[])
for (i=0; i < CLASS_SIZE; ++i)
class[i].course == '&SelectedCourse';
?? and how do i also do i get it to check whether the student is f/t or p/t?
cheers for any help.