[CODE]#include <iostream>
#include <algorithm>
using namespace std;
int main(){
double scores[10],sum = 0;
for (int i = 0;i < 10;++i){
cin >> scores[i];
sum += scores[i];
}
sort(scores,scores+10);
cout << "lowest :" << scores[0] << endl;
cout << "highest :" << scores[9] << endl;
cout << "average : " << sum / 10 << endl;
}[/CODE]
确实该骂。
[此贴子已经被作者于2007-5-31 10:48:41编辑过]
Fight to win or die...