Fixed read file missing statement
This commit is contained in:
parent
c5416d4704
commit
52dcaf6fac
@ -34,6 +34,9 @@ typedef struct person_tag PERSON;
|
|||||||
typedef struct course_tag COURSE;
|
typedef struct course_tag COURSE;
|
||||||
typedef struct student_tag STUDENT;
|
typedef struct student_tag STUDENT;
|
||||||
|
|
||||||
|
// file function
|
||||||
|
void read_file();
|
||||||
|
|
||||||
// util functions
|
// util functions
|
||||||
void display_menu();
|
void display_menu();
|
||||||
void print_welcome();
|
void print_welcome();
|
||||||
@ -49,7 +52,6 @@ void search_student();
|
|||||||
void find_maximum();
|
void find_maximum();
|
||||||
void find_failed();
|
void find_failed();
|
||||||
void update_file();
|
void update_file();
|
||||||
void read_file();
|
|
||||||
void quite();
|
void quite();
|
||||||
|
|
||||||
// Linked list functions
|
// Linked list functions
|
||||||
@ -338,9 +340,11 @@ STUDENT *find_failed_mark(int upper_mark)
|
|||||||
|
|
||||||
return failed_students;
|
return failed_students;
|
||||||
}
|
}
|
||||||
|
|
||||||
void find_maximum()
|
void find_maximum()
|
||||||
{
|
{
|
||||||
|
// refresh data from file first
|
||||||
|
read_file();
|
||||||
|
|
||||||
STUDENT *max_student = find_maximum_avg();
|
STUDENT *max_student = find_maximum_avg();
|
||||||
if (max_student == NULL)
|
if (max_student == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user