文件名称:voting
介绍说明--下载内容均来自于网络,请自行研究使用
投票规则如下:
1. 每个投票者只可以投一次票. 投票者通过生成的随机数 在第一个到最后一个候选人之间选择一个候选人来进行投票.
2. 每一个候选人都保存着投票者给他们投票的记录
3. 选举之后, 拥有最高投票数的候选人当选.
-The voting rules are as follows:
1. Each voter can vote only once. The voter decides which candidate to choose by generating a random number between 1 and the total number of candidates.
2. Each candidate maintains a record of the voters that voted for him
3. After election, the candidate with the highest number of votes is elected
1. 每个投票者只可以投一次票. 投票者通过生成的随机数 在第一个到最后一个候选人之间选择一个候选人来进行投票.
2. 每一个候选人都保存着投票者给他们投票的记录
3. 选举之后, 拥有最高投票数的候选人当选.
-The voting rules are as follows:
1. Each voter can vote only once. The voter decides which candidate to choose by generating a random number between 1 and the total number of candidates.
2. Each candidate maintains a record of the voters that voted for him
3. After election, the candidate with the highest number of votes is elected
(系统自动生成,下载前可以参看下载内容)
下载文件列表
voting.cpp