From b1fe773f8ab6642cc4adc2cd4d6e113adac42f59 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sun, 2 Aug 2020 11:27:05 +0700 Subject: [PATCH] Add function struct and tags for person tag and course tag Add header functions --- work1/single.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/work1/single.c b/work1/single.c index 6e7d813..4f98a42 100644 --- a/work1/single.c +++ b/work1/single.c @@ -1,8 +1,28 @@ #include "stdio.h" #include "stdlib.h" -int main() { +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; +}; + +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) { printf("Welcome!"); - + printf("Goodbye!"); } \ No newline at end of file