首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 试验内容: 跳水比赛中运动员每完成一个跳水动作,都有J名裁判员为其打分,但每次总成绩中都要去掉一个最高分和一个最低分。每个运动员需要完成C个动作,每次动作结束都...

试验内容: 跳水比赛中运动员每完成一个跳水动作,都有J名裁判员为其打分,但每次总成绩中都要去掉一个最高分和一个最低分。每个运动员需要完成C个动作,每次动作结束都...

  • 资源大小:8.41 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Windows开发

资 源 简 介

试验内容: 跳水比赛中运动员每完成一个跳水动作,都有J名裁判员为其打分,但每次总成绩中都要去掉一个最高分和一个最低分。每个运动员需要完成C个动作,每次动作结束都要按当前总成绩为全部运动员重新排序,结果在运动员出场比赛时显示出来。设总共有N个运动员参加比赛,其编号为1,2,… N。 编一个程序实现这一功能。 要求: 1、 建立一个*head为头结点的单链表 2、 以动作C为主循环,对每个动作输入每个运动员所有裁判打分。输入每个 运动员的所有打分后,立即对单链表按sum域(累计分)从小到大重新排序 3、 在每个动作之后,输出该单链表的所有结点-Note: Experimentation: When sportsman who taking part in diving game had finished each movement,there were J referees marking for sportsman,and each time the highest and lowest marks always were taken out. Each sportsman must finish C movements,no sooner did actions had be performed than current sum grades should be sorted and the final results should be displayed before athlete comes out. Supposing there are N athletes attending the game,the NO is 1,2,...N.Write an program to implement this fuction. Requires: 1 Create a single chain naming the name of headnode*head. 2 The movement C is main loop,Each sportsman s grades marked by all judges should be put in the each movement.After finished this,the

文 件 列 表

跳水动作.doc
蔡强.CPP
VIP VIP
0.190192s