You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
#ifndef H_STUDENT_HH
|
|
#define H_STUDENT_HH
|
|
#define INITIAL_SIZE 100 //数组初始大小
|
|
#define INCR_SIZE 50 //数组每次增加的大小
|
|
|
|
#include<stdio.h>
|
|
#include<malloc.h>
|
|
#include<stdlib.h>
|
|
#include<string.h>
|
|
#include<conio.h>
|
|
#include<time.h>
|
|
struct school
|
|
{
|
|
int sum;//学校总分
|
|
int msum;//男子总分
|
|
int wsum;//女子总分
|
|
};
|
|
struct student_info
|
|
{
|
|
char college[25];//学校
|
|
char number[15];//运动员编号
|
|
char name[20];//项目名
|
|
int namelb;//项目类别
|
|
int gender;//性别
|
|
int index;//项目名次
|
|
int score;//个人成绩
|
|
struct school schools;//总分
|
|
};
|
|
typedef struct student_info stuinfo;
|
|
|
|
extern int n;//学校数
|
|
extern int m;//男子项目数
|
|
extern int w;//女子项目数
|
|
extern FILE *fp;//文件指针
|
|
extern char name[];//项目名
|
|
extern int numstus;//记录的运动员数
|
|
extern stuinfo* records;//记录运动员信息的数组
|
|
extern int arraysize;// 数组大小
|
|
extern int count;//该项目参赛人数
|
|
extern int c1[5],c2[3];// 项目得名次加的分数
|
|
|
|
void logon(); //界面
|
|
void menu( ); //菜单
|
|
void print(); //输入学校名称
|
|
int print2(); //输入运动员编号
|
|
void sign(); //报名登记函数(新建与增加)
|
|
void find(); //信息查询函数
|
|
void check(); //检录函数
|
|
void input(); //成绩登记函数
|
|
void score(); //成绩查询函数
|
|
void rank(); //排序函数
|
|
#endif // H_STUDENT_HH
|