diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-19 20:23:57 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-19 20:23:57 +0000 |
commit | cc769ec1ddb92ee2d20c68834f2b7725dba43e6d (patch) | |
tree | 77b6bd633e6941efcfcf2419f8fff845c57c3996 /wk3/pset/runoff | |
parent | 1f398095d87435ff68c13d82664fe25104376657 (diff) |
Mon, Feb 19, 2024, 12:23 PM -08:00
Diffstat (limited to 'wk3/pset/runoff')
-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; } |