- 问答
- 2009-08-13 10:48:38 @
昨天刚做的那个最高奖学金的问题,代码:(刚学语言3个月)
#include"stdio.h"
void max(long int a,long int b); //声明函数max
long int markI[i],markII[i],thesis[i],money[i],A[i],B[i],C[i],D[i],E[i],sum,i;
char name[i],west[i],cadre[i]; //money[i]每个人的奖金数
main()
{
scanf("%d\n%s%d%d%c%c%d",&name[i],&markI[i],markII[i],&west[i],&gove[i],&thesis[i]);
for(i=0;i80&&thesis[i]>=1) A[i]=8000;
else A[i]=0;
if(markI[i]>85&&markII[i]>80) B[i]=4000;
else B[i]=0;
if(markI>90) C[i]=2000;
else C[i]=0;
if(markI[i]>85&&west[i]=Y) D[i]=1000;
else D[i]=0;
if(markII[i]>80&&cadre[i]=Y) E[i]=850;
else E[i]=0;
}
for(i=0;i
0 条评论
目前还没有评论...