diff options
Diffstat (limited to 'wk3/pset/runoff/runoff.c')
-rw-r--r-- | wk3/pset/runoff/runoff.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index 5d540a5..4cc566e 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -141,9 +141,13 @@ bool vote(int voter, int rank, string name) // Tabulate votes for non-eliminated candidates void tabulate(void) { - for (int i = 0; i < MAX_VOTERS; i++) + for (int i = 0; i < voter_count; i++) { - + // Query for each rank + for (int j = 0; j < candidate_count; j++) + { + if (preferences[i][j] ) + } } return; } |