From 9d9eb77688a3db402e11c04da260d0928cce55bb Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sat, 1 Aug 2020 22:10:24 +0700 Subject: [PATCH] clean the work files --- tests/util.c | 9 ++++++--- tests/work1.c | 30 +++++++++++++++--------------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/tests/util.c b/tests/util.c index 98b95e2..3899d55 100644 --- a/tests/util.c +++ b/tests/util.c @@ -1,14 +1,17 @@ #include "stdio.h" -void print(char *text) { +void print(char *text) +{ printf(text); } -void println(char *text) { +void println(char *text) +{ newline(); print(text); } -void newline() { +void newline() +{ printf("\n"); } \ No newline at end of file diff --git a/tests/work1.c b/tests/work1.c index 09a6b54..8ef3423 100644 --- a/tests/work1.c +++ b/tests/work1.c @@ -58,9 +58,8 @@ int main() printf("Course of units: %d", first->course_info.no_of_units); read_file("./../data/welcome.txt"); - - display_menu(); + display_menu(); newline(); @@ -104,32 +103,33 @@ void menu(int menu) } } - -void display_menu() { +void display_menu() +{ printf("\n"); read_file("./../note/section1.txt"); } -void display_students() { - +void display_students() +{ } -void search_student() { - +void search_student() +{ } -void find_maximum() { - +void find_maximum() +{ } -void find_failed() { - +void find_failed() +{ } -void update_file() { - +void update_file() +{ } -void exit_program() { +void exit_program() +{ println("Goodbye..."); } \ No newline at end of file