为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

运动会计分系统

2011-09-08 9页 doc 60KB 41阅读

用户头像

is_622493

暂无简介

举报
运动会计分系统#include #include #include #include #define n 1//参赛学校个数(可根据情况更改 ) #define m 1//男子项目数 #define w 1//女子项目数 typedef struct { int top; //取名次数目 int range[5];//排名 int mark[5]; //积分 int itemnum;//项目编号 }itemnode;//定义项目结点 typedef struct { int schoolnum;// 学校编号 int score;// ...
运动会计分系统
#include #include #include #include #define n 1//参赛学校个数(可根据情况更改 ) #define m 1//男子项目数 #define w 1//女子项目数 typedef struct { int top; //取名次数目 int range[5];//排名 int mark[5]; //积分 int itemnum;//项目编号 }itemnode;//定义项目结点 typedef struct { int schoolnum;// 学校编号 int score;// 学校总分 int mscore;// 男子团体总分 int wscore;// 女子团体总分 itemnode c[m+w];//项目数组 }headnode;//定义头结点 headnode h[n];//定义头结点数组 void inputinformation();//录入信息函数 void outputinformation();//显示信息函数 void chaxun();// 查询函数 void writefile(); //写文件 void readfile();//读取文件 /////////////录入信息///////////// void inputinformation() { int i,j,k,s; for(i=0;in) printf("错误:这个学校没有参加此次运动会!\n"); else { printf("要查询的项目编号:"); scanf("%d",&j); if(j>m+w||j==0) printf("此次运动会没有这个项目\n"); else { printf("这个项目取前 %d名,该学校的成绩如下:\n", h[0].c[j-1].top); for(k=0;k<5;k++) if(h[i-1].c[j-1].range[k]!=0) printf("名次:%d\n",h[i-1].c[j-1].range[k]); } } printf("是否继续操作(1/0)?:"); scanf("%d",&s); printf("\n"); }while(s==1); //循环执行输出语句 break; case 2: do { printf("要查询的项目编号:"); scanf("%d",&s); if(s>m+w||s==0) printf("此次运动会不包括这个项目\n"); else { printf("该项目取前 %d名,取得名次的学校\n",h[0].c[s-1].top); for(i=0; i
/
本文档为【运动会计分系统】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索