Fixed the largest avg find
This commit is contained in:
parent
ee1ec269b4
commit
1007604842
@ -271,6 +271,10 @@ STUDENT *find_maximum_avg()
|
||||
temp = temp->next;
|
||||
}
|
||||
|
||||
// set max next element to NULL
|
||||
// because we use only one record
|
||||
max->next = NULL;
|
||||
|
||||
return max;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user