上传者: a709206836
|
上传时间: 2022-03-08 14:17:55
|
文件大小: 872B
|
文件类型: -
C语言、课程设计、选手现场比赛统分系统
#include
#include
#define athlete 40
#define judge 20
void countathletescore (int sh[],float sf[],int n,float f[],int m);
void sort (int h[],float f[],int n);
void print (int h[],float f[],int n);
void countjudgescore (int ph[],float pf[],int m,float sf[],float f[],int n);
main ()
{
int j,m,n;
int sh[athlete];
int ph[judge];
float sf[athlete];
float pf[judge];
float f[athlete][judge];
printf("how many athletes?");
scanf("%d",&n);
printf("how many judges?");
scanf("%d",&m);