『易坊知识库摘要_c语言程序设计|c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统』要求用高级语言实现篮球联赛个人技术数据处理系统。该系统在磁盘上存储如下信息:1。每场球赛的个人技术数据。一场球一个人的技术数据包括:姓名,所属球队,三分球个数,篮板...
按关键词阅读:
技术
数据处理系统
个人
篮球联赛
语言
实现
高级
语言程序设计
C语言程序设计
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 。
【c语言程序设计|c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统】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!);
来源:(未知)
【傻大方】网址:http://www.shadafang.com/a/2021/0112/0021020478.html
标题:c语言程序设计|c语言程序设计 用高级语言实现篮球联赛个人技术数据处理系统