2020-08-02 11:02:12 +07:00
|
|
|
#include "stdio.h"
|
|
|
|
#include "stdlib.h"
|
|
|
|
|
2020-08-02 11:27:05 +07:00
|
|
|
struct person_tag {
|
|
|
|
char name[20];
|
|
|
|
char id[10];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct course_tag {
|
|
|
|
char course_name[20];
|
|
|
|
int no_of_units;
|
|
|
|
int marks[4];
|
|
|
|
float avg;
|
|
|
|
};
|
|
|
|
|
2020-08-02 11:30:13 +07:00
|
|
|
struct student_tag {
|
|
|
|
struct person_tag student_info;
|
|
|
|
struct course_tag course_info;
|
|
|
|
struct student_tag *next;
|
2020-08-02 11:31:44 +07:00
|
|
|
};
|
2020-08-02 11:30:13 +07:00
|
|
|
|
2020-08-02 11:27:05 +07:00
|
|
|
void display_students(void);
|
|
|
|
void search_student(void);
|
|
|
|
void find_maximum(void);
|
|
|
|
void find_failed(void);
|
|
|
|
void update_file();
|
|
|
|
void read_file();
|
|
|
|
void quite();
|
|
|
|
|
|
|
|
int main(void) {
|
2020-08-02 11:02:12 +07:00
|
|
|
printf("Welcome!");
|
2020-08-02 11:27:05 +07:00
|
|
|
|
2020-08-02 11:02:12 +07:00
|
|
|
printf("Goodbye!");
|
|
|
|
}
|