中南大学2017级自动化c语言,中南大学C语言程序设计实验——职工工资管理系统(附详细操作说明及注释).docx...

/* 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("*

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值