源代码:
#include<stdio.h
>
#include<math.h>
#include <conio.h>
#include <process.h>
#dene n 2//学校数目
#dene m 1//男子项目数目
#dene w 1//女子项目数目
#dene null 0
typedef
struct
{
int itemnum; //项目编
号
int top; //取名次的数目
int range[5]; //名
次
int mark[5]; //分数
}itemnode; //定义项目结点的类型
typedef
struct
{
int schoolnum; //学校编号
int score; //学校总分
int mscore; //男团体总分
int wscore; //女团体总分
itemnode c[m+w]; //项目数组
}headnode;//定义头结点类型
headnode h[n];//定义一个头结点数组
void inputinformation() //输入信息,建立系统
{
int i,j,k,s;
for(i=0;i<n;i+
+)
{
h[i].score=0;
h[i].mscore=0
;
h[i].wscore=0;
} //初始化头结点
for(i=0;i<n;i+
+)
{
printf("*****学校编号:");
scanf("%d",&h[i].schoolnu
m);
for(j=0;j<m+w;j++)
{
//输入头结点信息
评论1
最新资源