c语言编程图形篮球,c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统...

《c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统》由会员分享,可在线阅读,更多相关《c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统(14页珍藏版)》请在人人文库网上搜索。

1、题目:篮球赛个人技术统计系统设某篮球联赛要统计20名著名球员个人技术数据。要求用高级语言实现篮球联赛个人技术数据处理系统。该系统在磁盘上存储如下信息:1。每场球赛的个人技术数据。一场球一个人的技术数据包括:姓名,所属球队,三分球个数,篮板球个数,扣篮成功次数,抢断次数,得分,比赛日期。2。个人技术数据汇总表。表中反映了每个人的技术数据的累计结果。表羡为:姓名,三分球总数,篮板球总数,扣篮成功总次数,抢断总次数,得分总数,比赛场数。本系统功能如下:1。创建存储每常球赛个人技术数据的存储系统(第一次输入个人技术数据时),然后自动创建存储个人技术数据汇总表的存储系统。2。每场比赛后,添加个人技术数据。

2、,然后自动修改个人技术数据汇总表3。能输出当前的个人技术数据汇总表4。能输出指定技术项目平均每场数据较高的前三名运动员的姓名,所在队名和平均每场的单项数据。程序:/* Basketball Statistic Information System* Write By: Yan Yi Ling;* Date: 2008-09-10*/#define MAX_PLAYER 100#define P3 0#define SD 1#define RB 2#define CT 3#define CO 4#define MAX_TOP 3#define false 0#define true 1struc。

3、t basketballchar name20; /* players name */char team20; /* players team */short point_3; /* three pointer */short rebound; /* rebound */short sd; /* slam dunk */short cut; /* cut */short course; /* couese */char date11; /* race date */playerMAX_PLAYER;substr(char *p_from, char *p_to, int p_start, in。

4、t p_len) int index = 0, stop = p_start + p_len;while(p_start 9 ) continue;res = res * 10 + (int)p_strindex - 48;return res;split(char *p_str, char p_chr) int index;for(index = 0; p_strindex != p_chr & p_strindex != 0; +index) /* do nothing here */return index;#include stdio.h#include conio.hshort pl。

5、ayer_len = 0; /* how many players in the system current */main()short op_type, op_skill;char tmp20;loadInfo();while(1) showMenu();scanf(%d , &op_type);switch(op_type) case 1:inputPlayerInfo();break;case 2:printf(Please input players name: );scanf(%s, tmp);displayPlayerInfo(tmp);break;case 3:displayP。

6、layerInfo();break;case 4:printf(Please input players name: );scanf(%s, tmp);displayPlayerCount(tmp);break;case 5:printf(%d = three pointn, P3);printf(%d = slam dunkn, SD);printf(%d = reboundn, RB);printf(%d = cutn, CT);printf(%d = coursen, CO);puts(Please choose one of the skill you want to order: )。

7、;scanf(%d, &op_skill);displayTopInfo(op_skill);break;case 6:puts(Thank you to use this system!);puts(Bye!);return;default:puts(Input error! You must input number between 1 and 5!);break;printf(Enter to continue!);getchar(); getchar();puts(nnnnnnnnnnnnnnnn);/* show menu and return users operation*/in。

8、t showMenu() showTab(3);puts(Basketball Statistic Information System);showTab(7);puts(Write By: Yan Yi Ling);puts(1: Input player information);puts(2: Display player information);puts(3: Display all of the player information);puts(4: Display players count information);printf(5: Display TOP %d inform。

9、aionn, MAX_TOP);puts(6: Exitn);printf(Choose one of the function you want: );/* show tab in the screen* param p_tab: show many tab will print to the screen*/showTab(int p_tab) short index;for(index = 0; index = MAX_PLAYER) puts(Too many information!);return;printf(Please input players name: );scanf(。

10、%s, playerplayer_len.name);printf(Please input players team: );scanf(%s, playerplayer_len.team);printf(Please input race date(YYYY-MM-DD): );scanf(%s, playerplayer_len.date); getchar(); /* forcus enter */printf(How many three pointer did he/she got: );scanf(%d, &playerplayer_len.point_3);printf(How 。

11、many rebound did he/she got: );scanf(%d, &playerplayer_len.rebound);printf(How many slam dunk did he/she got: );scanf(%d, &playerplayer_len.sd);printf(How many cut did he/she got: );scanf(%d, &playerplayer_len.cut);printf(How many course did he/she got: );scanf(%d, &playerplayer_len.course);+player_。

12、len;if( saveInfo() )puts(save information success!);/* display players informaion according to players name*/displayPlayerInfo(char *p_name) short index, flag = false;printf(There are %d records in the system.n, player_len);puts(NametTeamtDatet3 PointertSlam DunktReboundtCuttCourset);for(index = 0; 。

13、index 0; tmp-) toptmp = toptmp - 1;top0 = index;/* end */* display information */for( index = 0; index len; index+) printf(TOP %d: %sttt%dn, index + 1, nametopindex, pointstopindex);/* end */数据测试结果(程序调试结果):1开始输入信息:2输入队员信息:3输入完信息后, 显示成员信息(需输入程序中已有的成员名,否则出错。):4显示成员信息(正确输入成员名。):5显示成员列表:6显示成员各项技能的得分情况:7。

14、选择需要某项技能的成员得分排名(降序):8例如:选择“1”选项,输出三分球的降序排列得分情况:9结束操作(选择“6”选项):感想(错误修正):不足之处:输入比赛日期时,不能用YYYY-MM-DD的形式,只能用YY-M-D的形式,否则输入各项技能得分时,格式不对。stator. Rotor installed in the stator end upper hangers supports or in the end cap oil parts installed special rotor shaft bracket. (Figure 19) in the stator ring shop i。

15、n turn lower half of the hard steel sheet, rubber mat and curve skateboards on the plate fixed to the four corners of four rope or nylon rope, tie outside the stator on the basis of, respectively. (Figure 20) axial-flow fan blade diameter greater than retaining ring diameter of the rotor at the top,。

16、 in front of the wear the stator, best to blade removed, preventing scratches and blades should be well marked. Rotor steam-side back wheel below the shaft or parts installed steam-side arc slider and the slider lower sliding surfaces coated with a thin layer of grease. The rotor excitation traction。

17、 installed end to end by a horizontal pole. Wire ropes lashing shall not damage the rotor surface using soft material wrapping wire rope, and the pad on the rotor surface with hard wood, or aluminum, lashing rope rotor with two points, the distance between two points is generally not less than 50070。

18、0mm, lashing wire rope when winding on the rotor and tighten the double baolan slide knot . 6.4.6.3 rotor wear loaded official hanging up rotor, pendulum are direction Hou will rotor from Reed end level slow wear trance child bore within, wear loaded process stator bore has two people guardianship, 。

19、and should guarantee steam end guardianship information smooth, ensure rotor surface dont and stator iron core coil collide; generator stator Reed end set two people guardianship, guardianship generator rotor not and stator core coil collide friction. Slow journey to move into the direction of the r。

20、otor, rotor wear them into the stator bore, will contact steam-side slider on the arc skateboards (must be over ladder after the stator to the slider, slider is only allowed access to the arc on a skateboard, or arc skateboards and protection of stator plate rollover may occur). Dang wire rope close machine shell Shi, stop wear loaded and slowly Panasonic lane hooks put。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值