1 / 23
文档名称:

C员工工资管理系统源代码.doc

格式:doc   大小:70KB   页数:23页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

C员工工资管理系统源代码.doc

上传人:annimy 2021/10/11 文件大小:70 KB

下载得到文件列表

C员工工资管理系统源代码.doc

相关文档

文档介绍

文档介绍:C员工工资管理系统源代码
C员工工资管理系统源代码
C员工工资管理系统源代码
#include 〈iomanip>
#include <iostream〉
#include 〈fstream〉
#include <>
#include 〈stdlib.h>
#include 〈string.h>
using namespace std;
#define NULL 0
#define LEN sizeof(struct student)  
int const N=20;
void Menu();
void Pass();
int n=0; //定义一个全局变量统计职工人数
//-—-—-—————->定义一个职工信息的结构体
struct student
{
char name[N];   //用来存放姓名
char sex[N];    //用来存放性别
long id;     //用来存放编号
float paid[3];  //用来存放工资
int total;    //用来存放总工资
struct student *next;
};
//-—-—-—-———---->职工类
class Information

public:
Information() ;   //构造函数.
~Information() ;  //析构函数.
student *creat(); //建立链表
void output(student *head);       //显示职工信息
int count(student *head);     //定义函数count()统计职工总数
C员工工资管理系统源代码
C员工工资管理系统源代码
C员工工资管理系统源代码
student *insert(student*head);   //指针函数*insert()用来添加职工信息。
student *cancel(student *head,long id); //指针函数*cancel()用来删除职工信息.
student *find(student *head,long id);    //指针函数*find()用来查找职工信息。
student *modify(student *head,long id);  //指针函数*modife()用来修改职工的信息.
void paixu(student *head);          //定义paixu()函数将职工的总额从大到小排列并输出
void average(student *head);     //定义职工工资平均值的函数
void save(student *head);     //保存文件信息
student *Read();      //读取文件信息
private:
student *p1,*p2,*p3,*head,st;
};
Information::Information()
{cout〈<” ******************************************************************************\n";
cout〈<” -----—---—------—-————-—<〈欢迎您使用员工工资管理系统>〉———-----—---——--——-—-—--\n”; 
cout〈<” ******************************************************************************\n\n";
}
Information::~Information()
{ cout〈<” ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤\n";
cout〈〈"                                   \n";
cout〈<”                  本系统管理员                    \n";
C员工工资管理系统源代码
C员工工资管理系统源代码
C员工工资管理系统源代码
cout<〈”