xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

可以對任何需要計分排名的比賽進(jìn)行自動計分排名。程序可輸入某次比賽的評委人數(shù)和評分標(biāo)準(zhǔn)數(shù)目,然后依次輸入選手編號、姓名、每位評委給出的每項評分標(biāo)準(zhǔn)的得分。輸入完成時,程序可以生成一個DATE.TXT保存根據(jù)總分排序的結(jié)果。操作者也可以選擇查看所有記錄、刪除某個記錄等。所有對選手成績的修改都將實時自動保存到DATE.TXT中。

資源截圖

代碼片段和文件信息

#include?
#include?
#include?“ctype.h“?
#include?“string.h“
#define?LENGTH?sizeof(struct?student)
#define?P?20???/*最大評委數(shù)*/
#define?B?20???/*最大評分標(biāo)準(zhǔn)數(shù)*/
static?int?n=0;
int?xy;
struct?student
{
long?number;
char?name[20];
float?sum;
float?score[B];
struct?student?*next;};

struct?student?*creat(struct?student?*head)??/*建立新記錄*/
{
int?ij;
float?score[P][B]={0};
?char?numstr[20];
struct?student?*p*p1=head*p2=head;
p=(struct?student?*)malloc(LENGTH);
printf(“\n?Input?the?new?number:“);
gets(numstr);
p->number=atol(numstr);???/*把字符串轉(zhuǎn)換成長整形數(shù)*/
printf(“\n?Input?the?new?name:“);
gets(p->name);
printf(“\n?Input?the?score(separate?whith?Enter):\n“);
for(i=0;i<20;i++)
p->score[i]=0;
for(i=0;ifor(j=0;jscanf(“%f“&score[i][j]);??/*輸入所

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????36176??2010-04-15?17:20??CHENGJI3.EXE

?????文件???????3396??2010-04-15?14:28??chengji3.c

-----------?---------??----------?-----??----

????????????????39572????????????????????2


評論

共有 條評論