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