From 46cd2556bcf86ae16398d03bde94528df03624c8 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 1 Aug 2020 22:20:12 +0700 Subject: [PATCH] Updated files work and manage --- work1/function.c | 18 ++++++++++++------ work1/main.c | 1 - work1/menu.c | 6 ++---- 3 files changed, 14 insertions(+), 11 deletions(-) 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;