Questions tagged [print-winner]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

cs50 pset3 print winner function

Im strugling with print_winner function in Tideman election program. In my opinion function workes fine. It prints the candidate which has all false values in column under his name (number) in locked ...
0
votes
1answer
19 views

Print winner implementation error. Can someone help?

I tried the following idea to print winner function. Can you check why it is not working? Defined a function named find_majority. This is to get around the float problem. called the function and ...
0
votes
1answer
82 views

My print_winner from pset3/tideman is doing everything right and still check50 says it's wrong

void print_winner(void) { bool looser; for (int i = 0; i < pair_count; i++) { looser = false; for (int j = 0; j < pair_count; j++) //checks if each winner ever lost ...