diff --git a/README.md b/README.md index eab80b8..868e0ef 100644 --- a/README.md +++ b/README.md @@ -1 +1,65 @@ # Student_registration_management_system +#include +#include +#include + +struct Student { + char id[20]; + char clas[20]; + char name[20]; + double score1; + double score2; + double score3; + double score; +}; + +// Function prototypes +void inputStudent(struct Student *stu); +void deleteStudent(struct Student *stu, int *numStudents); +void selectStudent(struct Student *stu, int numStudents); + +int main() { + struct Student students[100]; // Adjust the size as needed + int numStudents = 0; + int option; + + do { + // Display menu + printf("1. Input\n2. Delete\n3. Select\n4. Order\n5. Output\n6. Quit\n"); + printf("Please input your option: "); + scanf("%d", &option); + + switch (option) { + case 1: + inputStudent(&students[numStudents]); + numStudents++; + break; + case 2: + deleteStudent(students, &numStudents); + break; + case 3: + selectStudent(students, numStudents); + break; + // Add cases for other options (order, output) if needed + case 6: + printf("Exiting the program.\n"); + break; + default: + printf("Invalid option. Please try again.\n"); + } + } while (option != 6); + + return 0; +} + +void inputStudent(struct Student *stu) { + +} + +void deleteStudent(struct Student *stu, int *numStudents) { + +} + +void selectStudent(struct Student *stu, int numStudents) { + +}