From e13be3a0b62fe99a107533b0362dbcafcb138daf Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Mon, 3 Aug 2020 13:19:44 +0700 Subject: [PATCH] Updated q1 for update then show all records again --- real/q1.c | 5 ++++- work1/q1.c | 4 +++- work1/q3.c | 0 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 work1/q3.c diff --git a/real/q1.c b/real/q1.c index 512216c..8d19e64 100644 --- a/real/q1.c +++ b/real/q1.c @@ -485,7 +485,10 @@ again: printf("\nRecord saved successfully!\n"); // reload data into linked list again - read_file(); + // read_file(); + + // show back the all results + display_students(); } void read_file() diff --git a/work1/q1.c b/work1/q1.c index 3e25fb8..99b08ae 100644 --- a/work1/q1.c +++ b/work1/q1.c @@ -485,7 +485,9 @@ again: printf("\nRecord saved successfully!\n"); // reload data into linked list again - read_file(); + // read_file(); + + display_students(); } void read_file() diff --git a/work1/q3.c b/work1/q3.c new file mode 100644 index 0000000..e69de29