為啥運行失敗???請幫我看看
#include <stdio.h>
int main()
{??
? ? int score[]={67,98,75,63,82,79,81,91,66,84};
? ? return 0;
? ? int N,zf,pjf;
? ? for(N=0;N<9;N++)
? ? {
? ? ? ? zf += score[N];
? ? }
? ? printf("總分為%d\n",zf);
? ? pjf == zf/10;
? ? printf("平均分為%d\n",pjf);
? ? int zgf,zdf,temp;
? ? for(N=0;N<9;N++)
? ? {? ? int temp=0
? ? ? ? if(temp<score[N])
? ? ? ? {
? ? ? ? ? ? temp == score[N];
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ?temp;
? ? ? ? }
? ? }
? ? ? printf("最高分為%d\n",temp);
? ? ?for(N=0;N<9;N++)
? ? {? ?int themp=0
? ? ? ? if(themp>score[N])
? ? ? ? {
? ? ? ? ? ? themp == score[N];
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? temp;
? ? ? ? }
? ? }
? ? ?printf("最低分為%d\n",temp);
}
2020-02-21
temp==score是什么鬼?想賦予temp值直接寫temp=score就好了
2020-02-21
temp==score是什么鬼?想賦予temp值直接寫temp=score就好了
2019-11-24
else為什么后面直接一個變量
2019-11-06
return 0;不應該在主函數(shù)最下面嗎?不然你運行成功也沒有內(nèi)容啊