From 5b462bf65d32e4a4d642b06905648169400faa38 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 02:34:15 +0000 Subject: Sun, Feb 18, 2024, 6:34 PM -08:00 --- wk3/pset/plurality/plurality.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wk3/pset/plurality/plurality.c') diff --git a/wk3/pset/plurality/plurality.c b/wk3/pset/plurality/plurality.c index 8c98d6e..50c83dd 100644 --- a/wk3/pset/plurality/plurality.c +++ b/wk3/pset/plurality/plurality.c @@ -78,6 +78,9 @@ bool vote(string name) // Print the winner (or winners) of the election void print_winner(void) { - // TODO + string winner; + for (int i = 0; i < candidate_count - 1; i++) { + + } return; } -- cgit v1.2.3