Questions tagged [print-winner]
The print-winner tag has no usage guidance.
3
questions with no upvoted or accepted answers
0
votes
0answers
20 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
25 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
89 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 ...