#include "iostream.h"
void main()
{
float score[65535];
float temp=0.0;
float AllScore=0.0,AvgScore=0.0;
int i=0,j=0;
for(i=0;i<65535;i++)
{
score[i]=0.0;
}
i=0;
cout<<"输入每个人的成绩,输入-1结束!"<锋敏
{
cin>>temp;
if(temp!=-1)
{
score[i]=temp;
i++;
}
}
for(j=0;j {
AllScore+=score[j];
}
AvgScore=AllScore/i;
cout<<"所有学扰埋生的平均成绩为:"<<银李枝AvgScore<