BriMon @ 2017-09-20 23:36:13
#include<bits/stdc++.h>
using namespace std;
int main()
{
int high, apple[20], c=0;
memset(apple,0,sizeof(apple));
for(int i=0;i<10;i++)
{
scanf("%d",apple[i]);
}
scanf("%d",&high);
for(int j=0;j<10;j++)
{
if(apple[j]<=(high+30))
c++;
}
cout<<c;
return 0;
}
by BriMon @ 2017-09-21 00:07:06
为什么啊啊啊大神
by wxgwxg @ 2017-09-21 12:45:25
要加&,是scanf("%d",&apple[i])
by BriMon @ 2017-09-21 13:02:08
@wxgwxg 过了,谢谢大佬
by 炎儿 @ 2017-09-21 17:05:59
表示初学C老是忘打每行结束后的分号QwQ
而且更要命的是打输入语句的时候老是忘打&号……而且编译时还不报错QAQ