int main() { // now declare three variables as type student StudentT s1, s2, s3; getStudent(&s1); getStudent(&s2); displayStudent(&s1); displayStudent(&s2); return 0; }
void pratica25exercise7(int argc, const char * argv[]) { printf("\n\nExercise 7:\n"); struct student s = promptUserForStudent(); displayStudent(s); printf("\n\nThe students average mark is %f.",getStudentsAverageMark(s)); printf("\n\nThe students passed: \n"); struct attendances passed = getPassedAttendences(s.attendances); for(int i=0; i<passed.size; i++) { printf(" %s\n",passed.items[i].subject); } if(passed.size==0) { printf(" none course\n"); } }