C++小项目-演讲比赛

#include
using namespace std;
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
class Speaker
{
public:
	
	string m_Name;
	int m_Score[3] ; //得分数组

};

void createSpeaker(vector& v, map& m)
{
	string nameSeed = "ABCDEFGHIJKLMNOPQRSTUVXW";
	for (int i = 0; i < nameSeed.size(); i++)
	{
		string name = "选手";
		name += nameSeed[i];

		Speaker sp;
		sp.m_Name = name;
		for (int j = 0; j < 3; j++)
		{
			sp.m_Score[j] = 0;
		}

		v.push_back(i + 100);
		m.insert(make_pair(i + 100, sp));
	}
}

void speechDraw(vector& v)
{
	random_shuffle(v.begin(),v.end());
}

void speechContest(int index,vector& v1, map& m, vector& v2)
{
	multimap

你可能感兴趣的:(C++小项目-演讲比赛)