資源簡介
開發一個小型工資管理系統,工資信息包括:員工編號,姓名,基本工資,崗位工資,獎勵,應發工資,公積金,扣稅,實發工資等。
系統功能說明如下:
(1)密碼驗證功能:主要實現登陸密碼的驗證工作。
(2)對數據進行維護,包括數據錄入、添加、修改、刪除、統計、輸出等。
(3)對數據進行查詢,例如可按照員工編號、姓名等進行查詢。
(4)信息統計顯示。
(5)有關信息應保存在文件中。
(6)具有退出系統的功能。
(7)可增加其他有用的功能。
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include??
#define?len?sizeof(struct?wages)?
void?mima();
struct?wages*creat(void);?
void?print(struct?wages?*head);
void?del(struct?wages?**phead);
void?tongji(struct?wages?*head);
struct?wages?*insert(struct?wages?*head);
struct?wages?*xiugai(struct?wages?*head);
void?search(struct?wages?*head);
struct?wages
?{?
? int?num;????????????????//員工編號?
? char?name[20]; //姓名?
? int?basicsalary;?? //基本工資?
? int?positionsalary; //崗位工資?
? int?reward; //獎勵?
? int?payablewages; //應發工資?
? int?fund; //公積金?
float?tax;? //扣稅?
? float?realwages; //實發工資?
struct?wages?*next;
?}?;
int?i?=?0j?=?0nop;
int?main()
{?
struct?wages?*head;?
?mima();
?printf(“|--------------------
評論
共有 條評論