- 谁拿了最多奖学金
- 2009-11-02 21:36:33 @
请大家帮我看看哪里不对
在电脑上是可以的
#include
#include
int main()
{
long i,n,qimochengji[101],lunwen[i],
banjichengji[101],jxj[101],max,num,sum;
char xingming[101][256];
int ganbu[101],xibu[101];
char ch1,ch2;
for (i=0;i=1))
jxj[i]+=8000;
if ((qimochengji[i]>85)&&(banjichengji[i]>80))
jxj[i]+=4000;
if ((qimochengji[i]>90))
jxj[i]+=2000;
if ((qimochengji[i]>85)&&(xibu[i]))
jxj[i]+=1000;
if ((banjichengji[i]>80)&&(ganbu[i]))
jxj[i]+=850;
if (jxj[i]>max)
{
max=jxj[i];
num=i;
}
sum+=jxj[i];
}
printf("%s\n%d\n%d\n",xingming[num],max,sum);
return 0;
}
1 条评论
-
林小雅 LV 10 @ 2009-11-02 21:58:11
数组越界
- 1