diff --git a/work1/function.c b/work1/function.c index c516049..c4e7c9d 100644 --- a/work1/function.c +++ b/work1/function.c @@ -2,26 +2,32 @@ #include "stdio.h" #include "./student_tag.h" -void display() { +void display() +{ printf("display..."); } -void search(int mark) { +void search(int mark) +{ printf("search mark..."); } -void find_largest_average() { +void find_largest_average() +{ printf("find largest average..."); } -void find_failed_students() { +void find_failed_students() +{ printf("find failed students..."); } -void add_new(struct student_tag student) { +void add_new(struct student_tag student) +{ printf("add new..."); } -void quite() { +void quite() +{ exit(1); } \ No newline at end of file diff --git a/work1/main.c b/work1/main.c index 22a05ac..121fc0f 100644 --- a/work1/main.c +++ b/work1/main.c @@ -32,5 +32,4 @@ int main() // show menu menu(); - } \ No newline at end of file diff --git a/work1/menu.c b/work1/menu.c index 5efca1a..b41aa0e 100644 --- a/work1/menu.c +++ b/work1/menu.c @@ -15,8 +15,6 @@ void menu() printf("\n(6) Quit program\n\n"); } - - void choose_menu(int menu) { @@ -35,8 +33,8 @@ void choose_menu(int menu) find_failed_students(); break; case MENU_5: - - struct person_tag info = {"1","Sambo"}; + + struct person_tag info = {"1", "Sambo"}; struct student_tag std = {.student_info = info}; add_new(std); break;