运动员信息包括.doc_第1页
运动员信息包括.doc_第2页
运动员信息包括.doc_第3页
运动员信息包括.doc_第4页
运动员信息包括.doc_第5页
免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论