容器的实现
使用vector、deque容器:
给5名选手打分,去掉一个最高分,去掉一个最低分,取最后平均分
#include<iostream>
#include<vector>
#include<deque>
#include<algorithm>
#include<ctime>
using namespace std;
//选手类
class Person
{
public:
Person(string name, int score)
{
原创
2022-03-19 18:09:34 ·
97 阅读 ·
0 评论