#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>#include<conio.h>typedef?struct{????int?year;???????//年????int?month;??????//月????int?day;????????//日}Date;?typedef?struct{????char?id[8];????????//部門號????char?name[10];?????//部門名稱????char?leader[10];???//部門負責人}Department;?typedef?struct?employee{????char?id[10];???????????????//職工號????char?name[10];?????????????//姓名????char?sex[3];???????????????//性別????Date?birth;????????????????//出生日期????Department?division;???????//部門信息????char?technicalTile[12];????//技術職稱????float?basicWage;???????????//基本工資????float?bonus;???????????????//獎金????float?deductMoney;?????????//扣款????float?realWages;???????????//實發(fā)工資????struct?employee?*next;}Employee;?FILE?*getFile(char?*fileName,char?*use);??????????//獲取文件Account?*createAccount();?????????????????????????//創(chuàng)建鏈表并輸入用戶信息Account?*initAccount(FILE?*);?????????????????????//初始化數(shù)據(jù)信息Account?saveAccount(Account?*?,FILE?*);????????????//保存文件Account?*findAccount(Account?*,char?*);???????????//查找用戶Account?*appendAccount(Account?*);????????????????//添加用戶Account?*updateAccount(Account?*,char?*);?????????//修改用戶信息void?getPassword(char?*str,int?n);????????????????//輸入密碼void?changePassword();????????????????????????????//修改密碼void?load();??????????????????????????????????????//加載void?loginMenu();?????????????????????????????????//登錄菜單void?login();?????????????????????????????????????//登錄系統(tǒng)void?enroll();????????????????????????????????????//注冊用戶void?quit();??????????????????????????????????????//退出登錄void?runMenu();???????????????????????????????????//運行菜單void?umMenu();????????????????????????????????????//用戶管理菜單void?eimMenu();???????????????????????????????????//職工信息管理菜單void?addUsername();???????????????????????????????//添加用戶Employee?*finf(Employee?*,char?*);????????????????//查找職工信息void?input();?????????????????????????????????????//輸入職工信息Employee?*enter(Employee?*,int);??????????????????//輸入一個職工信息void?open();??????????????????????????????????????//打開epy.txt文件?void?save();??????????????????????????????????????//保存文件epy.txtEmployee?*?add();?????????????????????????????????//添加用戶void?output();????????????????????????????????????//輸出職工信息Employee?*?update();??????????????????????????????//修改職工信息Employee?*?deleted();?????????????????????????????//刪除職工信息Employee?*?append();??????????????????????????????//添加職工信息void?displayEmployee(Employee?*pep);??????????????//顯示單個職工信息Employee?*?sort();????????????????????????????????//?對職工信息排序Employee?*?insert();??????????????????????????????//插入職工信息void?dialog(char?*,char?*,void(*func)());?????????//提示信息Employee?*?create(int?n);?????????????????????????//創(chuàng)建鏈表并輸入職工信息void?selectMenu();????????????????????????????????//查詢菜單,程序運行界面void?selectEid();?????????????????????????????????//按職工號查詢信息void?selectDptName();?????????????????????????????//按部門名稱查詢信息
- 3 回答
- 0 關注
- 1503 瀏覽
添加回答
舉報
0/150
提交
取消