From 0db1fd92c94660a4734b006c4afe4861bc2923d5 Mon Sep 17 00:00:00 2001 From: pr9nfksyw Date: Fri, 22 Nov 2024 20:34:20 +0800 Subject: [PATCH] Delete 'main.c' --- main.c | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 main.c diff --git a/main.c b/main.c deleted file mode 100644 index bd5441a..0000000 --- a/main.c +++ /dev/null @@ -1,49 +0,0 @@ -#include -#include -#include -#include -#include -#include "menu.h" - -int main() { - Student students[MAX_STUDENTS]; - int count = 0; - int option; - - do { - displayMenu(); - if (scanf_s("%d", &option) != 1) { - printf("Invalid input. Please enter a number.\n"); - while (getchar() != '\n'); - continue; - } - - switch (option) { - case 1: - inputStudentInfo(students, &count); - break; - case 2: - displayStudentInfo(students, count); - break; - case 3: - insertStudentInfo(students, &count); - break; - case 4: - deleteStudentInfo(students, &count); - break; - case 5: - modifyStudentInfo(students, count); - break; - case 6: - queryStudentInfo(students, count); - break; - case 7: - printf("You are about to Quit\n"); - break; - default: - printf("Wrong input\n"); - } - } while (option != 7); - - return 0; -}