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

📄 common.h

📁 球队信息管理系统
💻 H
字号:
#include "stdio.h"
#include "stdlib.h"
#include <conio.h>
#include "string.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 "c:\\team.dat"//存储数据的文件的路径
#define MAX 100
void showMenu();

void writeToFile(MEMBER team[],int count);
int addMember(MEMBER team[],int count);
void newMember(MEMBER team[],int count);

void showAll(MEMBER team[],int count);
void List(MEMBER team[],int count);
int unique(MEMBER team[],int count,char *number);
int loadFromFile(MEMBER team[]);
//int checkDate(MEMBER *pmember,char tmpDate[]);

void queryByName(MEMBER team[],int count);
void queryByNumber(MEMBER team[],int count);
int deleteByNumber(MEMBER team[],int count);
void sortByName(MEMBER team[],int count);
void sortBySalary(MEMBER team[],int count);

void countSalsry(MEMBER team[],int count);
void countMember(int count);
void reportByRole(MEMBER team[],int count);
void kaishi();
void tuichu();
void showMenu2();
void reportControl(MEMBER team[],int count);

⌨️ 快捷键说明

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