
运动会数据结构与分数统计。
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
#define MAX 50
//#define NULL 0
typedef struct node1 {
int school; /*学校编号*/
int record; /*项目成绩*/
struct node1 *next; /*链域*/
} Schools;
typedef struct {
int item; /*项目编号*/
Schools *firstschool; /*链域指向链表中第一个结点*/
} ITEM;
typedef struct {
int z; /* 项目总数 */
ITEM a[MAX];
} ALLitems;
typedef struct node2 {
int item; /*该学校获奖的项目*/
int record; /*项目成绩*/
struct node2 *next; /*链域*/
} Items;
typedef struct {
int school; /*学校编号*/
int score; /*学校总分*/
int boys; /*男团体总分*/
int girls; /*女团体总分*/
Items *firstitem; /*链域指向链表中第一个获奖项目的结点*/
} SCHNode;
typedef struct {
int n; /* 学校总数 */
SCHNode b[MAX];
} ALLNode;
ALLitems *g1; ALLNode *g2;
全部评论 (0)
还没有任何评论哟~


