⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.h

📁 应用C语言实现一个员工工作信息管理系统 主要任务是实现对一个员工的各类人员的相关信息进行输入 输出 列表等操作。主要技术是使用数组
💻 H
字号:
#ifndef COM_H //条件编译,防止同一文件被包含多次
#define COM_H 

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>


struct date{
	int year;
	int month;
	int day;
};
typedef struct MEM{
	char number[10];
	char name[20];
	int role;
	int age;
	float high;
	float weight;
	float salary;
	struct date joinDate; //加入公司的日期
}MEMBER;

extern char * roleSet[4];

#define FILENAME "team.dat"
//#define FILENAME "c:\\team.dat"//存储数据的文件的路径
#define MAX 100

void newNode(MEMBER team[],int count);
void showMenu();
void showAll(MEMBER team[],int count);
int addMember(MEMBER team[],int count);
void sortByName(MEMBER team[],int count);
void list(MEMBER team[],int count);
int loadFromFile(MEMBER team[]);
void writeToFile(MEMBER team[],int count);
void sort(MEMBER team[],int count,int style);
void queryByName(MEMBER team[],int count);
void queryByNumber(MEMBER team[],int count);
int deleteByNumber(MEMBER team[],int count);
void countMember(int count);
void countSalary(MEMBER team[],int count);
void reportControl(MEMBER team[],int count);
void showReportMenu();
void  outputReport( MEMBER team[],int count,char *fields);
void reportByRole(MEMBER team[],int count);
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -