xnwygsw @ 2024-01-05 10:18:29
#include<iostream>
using namespace std;
int main()
{
int height[10],Taotao,j;
for(int i=0;i<10;i++)
{
cin>>height[i];
}
cout<<endl;
cin>>Taotao;
Taotao+=30;
for(int i=0;i<10;i++)
{
if(Taotao>=height[i])
{
j++;
}
}
cout<<j;
return 0;
}
by HZHDCM @ 2024-01-05 10:55:48
@xnwygsw
by kunfan @ 2024-02-04 21:55:01
@xnwygsw 数组开小了,应该是height[11]