|
|
|
|
int info_show() //<2F><>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
{ int i;
|
|
|
|
|
for(i=0;i<snum;i++)
|
|
|
|
|
{
|
|
|
|
|
printf("\n---------------------------------------------------------------------------------------------\n");
|
|
|
|
|
printf("| <20><><EFBFBD><EFBFBD>:%04d | <20><><EFBFBD><EFBFBD>:%s | ƽ<><C6BD><EFBFBD><EFBFBD>%.2f |\n",st[i].id,st[i].name,st[i].sum);
|
|
|
|
|
int j;
|
|
|
|
|
printf("|ʮλ<CAAE><CEBB>ί<EFBFBD>ɼ<EFBFBD><C9BC><EFBFBD>");
|
|
|
|
|
for(j=0;j<10;j++)
|
|
|
|
|
{
|
|
|
|
|
printf("[%d]%4.2f ",j+1,st[i].score[j]);
|
|
|
|
|
}
|
|
|
|
|
printf("\n---------------------------------------------------------------------------------------------\n");
|
|
|
|
|
}
|
|
|
|
|
getchar();
|
|
|
|
|
getchar();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
int info_find() //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
int k;
|
|
|
|
|
scanf("%d",&k);
|
|
|
|
|
for(i=0;i<snum;i++)//<2F><><EFBFBD><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>course[]<5D><><EFBFBD>Ҷ<EFBFBD>Ӧ<EFBFBD><D3A6> <20>γ<EFBFBD>id
|
|
|
|
|
{
|
|
|
|
|
if(st[i].id==k)//<2F>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
printf(" <20><><EFBFBD><EFBFBD>:%04d <20><><EFBFBD><EFBFBD>:%s :ƽ<><C6BD><EFBFBD><EFBFBD>%.2f \n",st[i].id,st[i].name,st[i].sum);
|
|
|
|
|
int j;
|
|
|
|
|
printf("ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ί<EFBFBD>ɼ<EFBFBD>:\n");
|
|
|
|
|
for(j=0;j<10;j++)
|
|
|
|
|
{
|
|
|
|
|
printf("[%d]%.2f ",j+1,st[i].score[j]);
|
|
|
|
|
}
|
|
|
|
|
printf("\n");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
getchar();getchar();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
int grade_modify()
|
|
|
|
|
{
|
|
|
|
|
int id,i;
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>");
|
|
|
|
|
|
|
|
|
|
scanf("%d",&id);
|
|
|
|
|
for(i=0;i<snum;i++)//<2F><><EFBFBD><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>course[]<5D><><EFBFBD>Ҷ<EFBFBD>Ӧ<EFBFBD><D3A6> <20>γ<EFBFBD>id
|
|
|
|
|
{
|
|
|
|
|
if(st[i].id==id)//<2F>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
printf(" <20><><EFBFBD><EFBFBD>:%04d <20><><EFBFBD><EFBFBD>:%s :ƽ<><C6BD><EFBFBD><EFBFBD>%.2f \n",st[i].id,st[i].name,st[i].sum);
|
|
|
|
|
int j;
|
|
|
|
|
printf("ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ί<EFBFBD>ɼ<EFBFBD>:\n");
|
|
|
|
|
for(j=0;j<10;j++)
|
|
|
|
|
{
|
|
|
|
|
printf("[%d]%.2f ",j+1,st[i].score[j]);
|
|
|
|
|
}
|
|
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
|
|
while(1)
|
|
|
|
|
{
|
|
|
|
|
int k;
|
|
|
|
|
printf("\n\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ĵڼ<EFBFBD>λ<EFBFBD><EFBFBD>ί<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:") ;
|
|
|
|
|
scanf("%d",&k);
|
|
|
|
|
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>³ɼ<EFBFBD>:");
|
|
|
|
|
scanf("%lf",&st[i].score[k-1]);
|
|
|
|
|
printf("\t\tʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ί<EFBFBD>ɼ<EFBFBD>:\n");
|
|
|
|
|
for(j=0;j<10;j++)
|
|
|
|
|
{
|
|
|
|
|
printf("[%d]%.2f ",j+1,st[i].score[j]);
|
|
|
|
|
}
|
|
|
|
|
printf("\n");
|
|
|
|
|
printf("\t\t<EFBFBD>ijɹ<EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t<EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD>˳ɼ<EFBFBD> (y/n) : ");
|
|
|
|
|
int flag;
|
|
|
|
|
scanf("%d",&flag);
|
|
|
|
|
if(flag==0)
|
|
|
|
|
break;
|
|
|
|
|
//printf("gg");
|
|
|
|
|
}
|
|
|
|
|
// printf("kk");
|
|
|
|
|
double mi=0xffffff,ma=0;
|
|
|
|
|
for( j=0;j<10;j++)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if(mi>st[snum].score[j])
|
|
|
|
|
{
|
|
|
|
|
mi=st[snum].score[j];
|
|
|
|
|
}
|
|
|
|
|
if(ma<st[snum].score[j])
|
|
|
|
|
{
|
|
|
|
|
ma=st[snum].score[j];
|
|
|
|
|
}
|
|
|
|
|
st[snum].sum+=st[snum].score[j];
|
|
|
|
|
}
|
|
|
|
|
st[snum].sum=st[snum].sum-mi-ma;
|
|
|
|
|
st[snum].sum/=8;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
save();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|