summaryrefslogtreecommitdiff
path: root/wk3/pset/runoff
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:48:10 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-02-19 20:48:10 +0000
commit3de64cf7d952ec8435e6504c58dfb29c75558890 (patch)
treefa023a665c459179dacdffbd0fa2eb594f3d0360 /wk3/pset/runoff
parent6968450aec041b03188594c348436359368c64fb (diff)
Mon, Feb 19, 2024, 12:48 PM -08:00
Diffstat (limited to 'wk3/pset/runoff')
-rw-r--r--wk3/pset/runoff/runoff.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c
index f6acc50..0868008 100644
--- a/wk3/pset/runoff/runoff.c
+++ b/wk3/pset/runoff/runoff.c
@@ -176,11 +176,17 @@ bool print_winner(void)
*/
/*
- for (candidates) {
- if (candidates.votes >= (voter_count / 2)) {
+ for (candidates)
+ {
+ if (candidates.votes >= (voter_count / 2))
+ {
printf("%s", candidate.name);
return true;
- } else if ()
+ }
+ else if ()
+ {
+
+ }
}
*/
return false;