summaryrefslogtreecommitdiff
path: root/wk3
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:33:52 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:33:52 +0000
commit2283149f9995c02124ab12c30bb52bf2dfba1afb (patch)
tree89504dc3d496a1ba60622eb03dd5a2f73cfc5523 /wk3
parent6bec04c8ff49f14b96e1a37fc2ab2fb89af04064 (diff)
Mon, Feb 19, 2024, 12:33 PM -08:00
Diffstat (limited to 'wk3')
-rw-r--r--wk3/pset/runoff/runoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c
index 4daa519..5ed853e 100644
--- a/wk3/pset/runoff/runoff.c
+++ b/wk3/pset/runoff/runoff.c
@@ -171,7 +171,7 @@ bool print_winner(void)
{
winners[j] = -1;
}
- //
+ // goes through every candidate, looks at votes, eliminates the least voted
for (int i = 1; i < candidate_count; i++)
{
if (candidates[winners[0]].votes < candidates[i].votes) // if the new candidate has more votes than previous