How to realize the Student status Management system with C language
This article to share with you is about C language how to achieve student management system content. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
specific contents are as follows
Design a student management system, basic functions include:
1. Enter basic student information
2. Enquire student information (1. By student number 2. By name)
3. Delete student information (1. by student number 2. by name)
4. Sorted by student information (1. by student number 2. by name)
5. Modify basic student information
6. Output student information
7. Save student information
0. exit the program
Note: Due to limited knowledge, the system temporarily stipulates that only 3 students 'data can be input, and will be improved to randomly process the data of any number of students in the future.
I. Home Page
void enter(struct student stu[],int n){ int select; while(select!= 0) { printf("\t\t\t ---------------------------\n"); printf("\n"); printf("\t\t\t Welcome to the Student Status Management System\n"); printf("\n"); printf("\t\t\t ---------------------------\n"); printf("\t\t\t 1. Enter basic student information\n"); printf("\t\t\t 2. Query student information (1. By student number 2. By name)\n"); printf("\t\t\t 3. Delete student information (1. by student number 2. by name)\n"); printf("\t\t\t 4. Sort student information (1. by student number 2. by name)\n"); printf("\t\t\t 5. Modify student basic information\n"); printf("\t\t\t 6. Output student information\n"); printf("\t\t\t 7. Save Student Information\n"); printf("\t\t\t 0. exit program\n"); printf("\t\t\tPlease enter your options"); scanf("%d",&select); system("cls"); switch(select) { case 1:input(stu,n);break; case 2:seek(stu,n);break; case 3:delect(stu,n);break; case 4:sort(stu,n);break; case 5:revise(stu,n);break; case 6:output(stu,n);break; case 7:keep(stu,n);break; case 0:printf("\t\t\tYou have logged out of the Student Status Management System\n");break; default:printf("input error\n"); system("pause"); system("cls"); } }}
II. Input
int count=0; //void input(struct student stu[],int n){ int i; if(count!= 0) count=0; printf("\t\t\t-------------------------------\n"); printf("\n"); printf("\t\t\t Welcome to Student Information Entry System\n"); printf("\n"); printf("\t\t\t-------------------------------\n"); printf("\t\tPlease enter basic information of students (student number, name, age, gender (female w, male m))\n"); for(i=0;i