common.h

来自「球队信息管理系统」· C头文件 代码 · 共 52 行

H
52
字号
#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 + =
减小字号Ctrl + -
显示快捷键?