How to realize the Management system of Teaching staff on C++
This article mainly introduces "how to realize the teaching staff management system of C++". In the daily operation, I believe that many people have doubts about how to realize the teaching staff management system of C++. The editor consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to realize the teaching staff management system of C++". Next, please follow the editor to study!
Requirements: design a program to manage more comprehensive data information of employees, with data input, search, deletion and other functions. The specific functional details can be increased according to your own understanding.
Here is my design:
# include # include # include struct worker {int num;char name [20]; char zhicheng [10]; int wages;int reward;long birth;int salary;} work [500], work1; / * define structure * / void menu (); / / declare menu function void type_in (); / / declare entry function void baocun (int) / / declare save function void scan (); / / declare browsing function void del (); / / declare delete function void search (); / / declare query function void search_zhicheng (); / / declare query function void search_name () by title / / declare to find the function void change () by name; / / declare to modify the function void order (); / / declare the sort function void add (); / / declare to add the function void order_wages (); void order_name () Void menu () / * menu function * / {printf ("\ n"); printf ("Welcome to\ n"); printf ("employee Information Management system") Printf ("*\ n"); printf ("1. Enter employee information\ n "); printf (" 2. Browse employee information\ n "); printf (" 3. Query employee information\ n "); printf (" 4. Delete employee information\ n "); printf (" 5. Modify employee information\ n "); printf (" 6. Sort employee information\ n "); printf (" 7. Add employee information\ n "); printf (" 8. Exit\ n "); printf (" *\ n "); printf ("\ n ") } / * / void main () {int njue f While (1) {do {menu (); printf ("Please enter the sequence number you need to operate (1-8):\ n"); scanf ("% d", & n); if (n > = 1 roomn)