没有合适的资源?快使用搜索试试~ 我知道了~
职工工资信息管理系统
需积分: 10 71 下载量 162 浏览量
2008-06-25
20:15:50
上传
评论
收藏 6KB TXT 举报
温馨提示
试读
8页
刚做的,跟大家分享以下
资源推荐
资源详情
资源评论
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#define LEN sizeof(struct worker)
#define NULL 0
struct worker *HEAD;
char ENT;
struct worker
{char cardno[10];
char name[20];
char sex[6];
int age;
char depart[10];
char title;
char titleno[10];
int base_salary;
int title_salary;
int wfee;
int efee;
int yfsalary;
int tax;
int sfsalary;
int reward;
int buzhi;
struct worker *next;
}worker[20];
void main()
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#define LEN sizeof(struct worker)
#define NULL 0
struct worker *HEAD;
char ENT;
struct worker
{char cardno[10];
char name[20];
char sex[6];
int age;
char depart[10];
char title;
char titleno[10];
int base_salary;
int title_salary;
int wfee;
int efee;
int yfsalary;
int tax;
int sfsalary;
int reward;
int buzhi;
struct worker *next;
}worker[20];
void main()
{
int choose;
struct worker *x;
struct worker *add(struct worker *p1);
void save();
struct worker *load();
void edit();
void del();
void insert();
system("color 9e");
HEAD=(struct worker*)malloc(LEN);
x=load();
manu: system("cls");
printf("~~~~~~~~~~~~&欢迎进入职工工资信息管理系统&~~~~~~~~~~~~ \n");
printf(" (1)职工信息录入 2007计算机\n");
printf(" (2)职工信息插入 课程设计\n");
printf(" (3)职工信息删除\n");
printf(" (4)职工信息查询\n");
printf(" (0)退出系统\n");
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
printf("要进行什么操作(0-4):");
scanf("%d",&choose);
ENT=getchar();
switch(choose)
{case 1: x=add(x);save();break;
case 2: insert();save();break;
case 3: del();save();break;
case 4: search();save();break;
case 0: printf("谢谢使用!\n");exit(0);
default: printf("请输入1,2,3,4或0\n");printf("\n按回车键返回");getchar();goto manu;
int choose;
struct worker *x;
struct worker *add(struct worker *p1);
void save();
struct worker *load();
void edit();
void del();
void insert();
system("color 9e");
HEAD=(struct worker*)malloc(LEN);
x=load();
manu: system("cls");
printf("~~~~~~~~~~~~&欢迎进入职工工资信息管理系统&~~~~~~~~~~~~ \n");
printf(" (1)职工信息录入 2007计算机\n");
printf(" (2)职工信息插入 课程设计\n");
printf(" (3)职工信息删除\n");
printf(" (4)职工信息查询\n");
printf(" (0)退出系统\n");
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
printf("要进行什么操作(0-4):");
scanf("%d",&choose);
ENT=getchar();
switch(choose)
{case 1: x=add(x);save();break;
case 2: insert();save();break;
case 3: del();save();break;
case 4: search();save();break;
case 0: printf("谢谢使用!\n");exit(0);
default: printf("请输入1,2,3,4或0\n");printf("\n按回车键返回");getchar();goto manu;
剩余7页未读,继续阅读
资源评论
lz1989
- 粉丝: 1
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功