/* Note:Your choice is C IDE */
#include "stdio.h"
#include "string.h"
#include "conio.h"
#include "stdlib.h"
struct Message/*此结构体用于存放职工信息以及创建链表*/
{
char name[30];
int ID;
int JBGZ;
int ZWGZ;
int JT;
int YLBX;
int GJJ;
long int Total;
float Sum_3;
struct Message *nextPrt;
} static *head,*Rec_1=NULL,*Rec_2=NULL, *Rec_3=NULL; /*此处创建一个表头,以及三个用于恢复函数的静态变量*/
static float Sum_JBGZ=0,Sum_ZWGZ=0,Sum_JT=0,Sum_YLBX=0,Sum_GJJ=0;
static float Average_JBGZ,Average_ZWGZ,Average_JT,Average_YLBX,Average_GJJ;
void Input();/*此处声明各一级函数*/
void Output();
void Delete();
void Add();
void Recover();
void Modify();
void Search();
void Statistic();
struct Message *creat(struct Message *h);/*此处声明各二级函数*/
void print_Message(struct Message *h);
struct Message *del_Message(struct Message *h,char *str);
struct Message *add_Message(struct Message *h,struct Message *a,char *strafter);
struct Message *Recover_Message(struct Message *h);
struct Message *Modify_Message(struct Message *h,char *str);
void Search_Message(struct Message *h);
void Statistic_Message(struct Message *h);
main()/*主函数为菜单页*/
{char i;/*功能:调用各一级函数一级退出程序*/
clrscr();
gotoxy(27,9);
printf("\16[ 中 南 大 学 ]");
gotoxy(27,11);
printf("\16[ 职工工资管理系统 ]");
gotoxy(27,13);
printf("\16[ 设 计 者:刘 路 ]");
gotoxy(27,15);
printf("\16[ 输入任意键继续 ]\n");
getch();
for(;;)
{
clrscr();
gotoxy(25,9);
printf("* * * * * * *菜单* * * * * *");
gotoxy(25,10);
printf("* a. 输入记录 *");
gotoxy(25,11);
printf("* b. 显示记录 *");
gotoxy(25,12);
printf("* c. 修改记录 *");
gotoxy(25,13);
printf("* d. 查找记录 *");
gotoxy(25,14);
printf("* e. 添加记录 *");
gotoxy(25,15);
printf("* f. 删除记录 *");
gotoxy(25,16);
printf("* g. 恢复记录 *");
gotoxy(25,17);
printf("* h. 统计数据 *");
gotoxy(25,18);
printf("* i. 退出程序 *");
gotoxy(25,19);
printf("*