Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tabulate(void)
- {
- // TODO
- for (int i = 0; i < voter_count; i++)
- {
- for (int j = 0; j < candidate_count; j++)
- {
- if (!candidates[preferences[i][j]].eliminated)
- {
- candidates[preferences[i][j]].votes++;
- break;
- }
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment