From dfe022a9a2133cb376e5a5f3ceb89adc7d92a1b0 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 02:49:51 +0000 Subject: Sun, Feb 18, 2024, 6:49 PM -08:00 --- wk3/pset/plurality/plurality.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wk3/pset/plurality') diff --git a/wk3/pset/plurality/plurality.c b/wk3/pset/plurality/plurality.c index 575434a..ea8ba9a 100644 --- a/wk3/pset/plurality/plurality.c +++ b/wk3/pset/plurality/plurality.c @@ -92,6 +92,8 @@ void print_winner(void) } //put it at the start of the new list winners[0] = candidates[i].name; + } else if (winners[0] == candidates[i].name) { + for (int j = 1; j < candidate_count - 1; j++) } } return; -- cgit v1.2.3