Student management system (C language version)

student management system

This is a small project I did when I was a freshman learning C language. The code part was basically completed by myself, without using any high-level technology, and EasyX (a C++ graphics library) was used for graphics, and everything else was It is the basic content of C language.

Project Introduction

Overview of the overall functionality of the project

This is the overall function of the project, which is mainly divided into two parts: the student side and the teacher side. The student side has the functions of creating an account, changing the password, logging in the student, and querying student information; the
teacher side has the functions of creating an account, changing the password, and logging in the teacher. After logging in, teachers can add, modify, delete, search, and count the related information of students' grades.
insert image description here

Project part function display

Main function display:

1. Start interface
insert image description here

2. Student login interface
insert image description here

3. Interface after login of
insert image description here
teacher terminal 4. Teacher terminal menu 1
insert image description here

5. Teacher terminal menu 2
insert image description here

Main function description

  • Stu_Register(), Tea_Register() student, teacher registration function
    The user enters the user name, the function detects whether the input user name has been registered, and if it has been registered, a prompt message will appear; if not, continue to enter the password. The function judges whether the passwords entered twice are consistent, if they are consistent, the registration is completed, and if they are inconsistent, a prompt message will appear.

  • Stu_Logon(), Tea_Logon() Student, Teacher login function
    The user enters the user name, and the function finds out whether the user exists. If it does not exist, a prompt message appears. If it exists, continue to enter the password. If the password is correct, the login is completed. If the password is entered three times If it is still incorrect, a prompt message will appear.

  • Stu_ResetPassword(), Tea_ResetPassword() Change Password Function for Students and Teachers
    After logging in, the user can modify the password, enter the user name, and the function retrieves whether the user exists. If it does not exist, a prompt message appears. If it exists, enter the original password. If the original password is incorrect three times, a prompt message will appear. If the input is correct, enter the new password. If the new password is skipped directly, the password will not be changed by default, and the password recognizes the old password.

  • Stu_ScoreManagement(), Tea_ScoreManagement() Student, Teacher Query Student Information Function
    User input related student information The function is to perform a fuzzy query from the existing data, compare the input information with the existing data, and if the student exists, it will be displayed on the screen. Print out the student's information, if there is no student that matches exactly, print out all the student information related to the entered information, such as: the input information is: small, then print out the information of all students with the word "small", If the entered information is completely irrelevant to the existing student information, a prompt message will appear.

  • Stu_CreateScore() Student information addition function
    Teacher users can input the name of the student, if the student has been added, a prompt message will appear, if the student has been added, continue to input the student's score information.

  • Stu_AmendScore() student information modification function
    After the teacher user enters the name of the student, the function searches whether the student exists. If not, a prompt message appears. If it exists, it continues to input the student's score information that needs to be modified.

problems encountered

2020.3.3: The inserted picture cannot be opened.
Fix: Unify the format of pictures to jpg format.

2020.3.5: The information saved after input is garbled.
Correction: Convert the format of the data stored in the file, and convert it from wchar to char for storage.

2020.3.7: There is a situation where there is a null pointer in the sorting of the linked list of student grades, resulting in garbled output.
Correction: The linked list sorting function is re-modified, so that the head pointer passed down after sorting is not null.

2020.3.10: Some students' grades will be repeatedly output when turning pages.
Fix: Modify the page turning function to prevent the students at the end from repeating output when turning pages.

2020.5.12: The latest problem is that the program is still running after pressing the "exit" key.
Fixed: Added "exit(0);" statement to exit the program.

Instructions for use

Use Visual Studio 2013 to click the project's student management system (graphical version).sln file to open the project

insert image description here
Note: It is best to use Visual Studio 2013 to open the running project, otherwise some problems may occur.

At last

The project address is as follows:
Github address: https://github.com/guanchanglong/StudentManagementSystem-C
Could you please give a star when reading the code ^ _ ^, thank you very much for your effort.

PS: You can also go to my personal blog to see more content
Personal blog address: Xiaoguan classmate's blog

Guess you like

Origin blog.csdn.net/weixin_45784666/article/details/120610989