




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
运动员信息包括:运动员编号、班级、姓名、竞技项目等。试设计一运动会管理系统,使之能提供以下功能:运动员信息录入功能(运动员信息用文件保存)输入运动员信息浏览功能输出查询和排序功能:(至少一种查询方式)算法 按竞技项目查询 按姓名查询运动员信息删除、修改功能(人选项)问题补充: 需要算法,流程图,总结!搞诉我地址,我可以发给你试试这个,论文也有#include#define A 100int y=0,f=0,j,W,M,N,p15,q15;struct student char shool20; char name20; char item20; char sex; int position; int mark;stuA;struct item char name20; char sex; int mark;itA;struct shool char name20; char item20; int mark;shoA;main() menu();menu() int w1,n; do puts(tt*MENU*); puts(nntt 1.The information to writeinn); puts(tt 2.The race result records to writeinn); puts(tt 3.Search the informationn); puts(tt 4.Exitn); puts(ntt*); puts(nnChoice you number:); scanf(%d,&n); if(n4)w1=1;getchar(); else w1=0; while(w1=1); switch(n) case 1:establish();break; case 2:enter();break; case 3:search();break; case 4:exit(0); establish() int h,r; extern N,M,W; y=1; printf(nThe number of shool attended is:); scanf(%d,&N); printf(nThe number of men item is:); scanf(%d,&M); printf(nThe number of women item is:); scanf(%d,&W); printf(nThere are three form of marked you can choice:); printf(nnt1).1th-7,2th-5,3th-3,4th-2,5th-1.); printf(nnt2).1th-5,2th-3,3th-1.); printf(nnt3).Define by youself.);loop: printf(nnChoice the number(1-3):); scanf(%d,&h); if(h0&h4|e1)goto loop; printf(Press any key+Enter to menu.);scanf(%s,&c);menu();search_school() int x,sum=0,w=0; struct student s; printf(nPlease enter the name of the school that you want to search:); scanf(%s,&s.shool); printf_face(); for(x=0;xA;x+) if(strcmp(s.shool,stux.shool)=0) sum+=stux.mark; printf_one(x);w=1; printf_sum(sum); if(w=0) printf(nn*The name is wrong,press again!);search_school();search_item() int x,sum=0,w=0; struct student s; printf(nPlease enter the name of the item that you want to search:); scanf(%s,&s.item); printf_face(); for(x=0;xA;x+) if(strcmp(s.item,stux.item)=0) sum+=stux.mark; printf_one(x);w=1; printf_sum(sum); if(w=0) printf(nn*The name is wrong,press again!);search_item();mark(int j,int i) int g; extern p15,q15; if(j=1) if(stui.position=1)stui.mark=7; else if(stui.position=2)stui.mark=5; else if(stui.position=3)stui.mark=3; else if(stui.position=4)stui.mark=2; else if(stui.position=5)stui.mark=1; if(j=2) if(stui.position=1)stui.mark=5; else if(stui.position=2)stui.mark=3; else if(stui.position=3)stui.mark=1; if(j=3) for(g=0;g15;g+)if(stui.position=pg)stui.mark=qg;define_mark() static int p15,q15,a,b,j; for(a=0;a15;a+) printf(nThe position(1-15):);scanf(%d,&pa); printf(nThe mark you want to define(Integral):);scanf(%d,&qa); loop:printf(nDo you want define more:t1).Yest2).No);scanf(%d,&b); if(b=2)break; if(b!=1)goto loop; j=3;printf_one(int x) printf(n%-20s%-20s%-20s%-5c%-9d%-5d,stux.shool,,stux.item,stux.sex,stux.position,st
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 考粤语的测试题及答案
- 万峰集团考试试题及答案
- 2026届山西省太原市育英中学高二化学第一学期期中监测模拟试题含解析
- 洗涤行业考试题及答案
- 家电公司财务管理办法
- 蚂蚁几何测试题及答案
- 家电公司绩效管理办法
- 大一新生军训总结
- 物业法规考试题及答案
- 用友u8实操考试试题及答案
- 三农村集体经济组织内部审计操作手册
- 植物基食品生产设备创新-深度研究
- 山东省青岛市市南区2024-2025学年七年级上学期期末语文试题(含答案)
- 成品库管理汇报
- 锂电池项目经济效益及投资价值分析
- 2025《抛丸机安全操作规程》符合安全标准化要求
- 混凝土搅拌站实验室质量管理手册(正本)
- DB35T 2078-2022 沼液还田土地承载力测算技术规范
- 供货及时性保证措施
- 雅马哈RX-V365使用说明书
- 2023-2024学年江苏省盐城市盐都区八年级(下)期末物理试卷(含答案)
评论
0/150
提交评论