From 13bdbe1d9a3665e92ccf3ef3dbd0bb300607356d Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 02:43:48 +0000 Subject: Sun, Feb 18, 2024, 6:43 PM -08:00 --- wk3/pset/plurality/plurality.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wk3/pset/plurality') diff --git a/wk3/pset/plurality/plurality.c b/wk3/pset/plurality/plurality.c index 19cdd5e..ad6a487 100644 --- a/wk3/pset/plurality/plurality.c +++ b/wk3/pset/plurality/plurality.c @@ -80,7 +80,9 @@ void print_winner(void) { string winners[candidate_count - 1] = candidates[0]; for (int i = 1; i < candidate_count - 1; i++) { - if (winners) + if (winners[0] < candidate[i].name) { + + } } return; } -- cgit v1.2.3