parent
f070aba790
commit
dbd3dc9057
@ -1 +1,65 @@
|
||||
# Student_registration_management_system
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
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) {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue