示例#1
0
int main(int argc, char *argv[])
{
	RabbitVoting obj;
	vector<string> names, votes;
	names.push_back("one");
	votes.push_back("one");
	cout<<obj.getWinner(names,votes)<<endl;
}
示例#2
0
int main(){
    vector<string> names;
    vector<string> votes;
    RabbitVoting *rv = new RabbitVoting();

    names.push_back("Alice");
    names.push_back("Bill");
    names.push_back("Carol");
    names.push_back("Dick");

    votes.push_back("Bill");
    votes.push_back("Dick");
    votes.push_back("Alice");
    votes.push_back("Alice");

    cout << rv->getWinner(names, votes);
}