Hot answers tagged

1

Interesting that check50 doesn't pick that up! There is a problem in find_min. That function should have no side-effects, ie should not change any data, only report a result. This line candidates[j].votes = candidates[i].votes; has the potential to change a candidates vote count; that would be bad. There may be other problems in the code, but this jumps off ...


1

How is the file name extension supposed to be spelled, precisely??? sprintf(nf, "%03i.jpeg", jpnum++); vs: 000.jpg not found Close doesn't get the job done. ;-)


1

After several false starts, we finally got the code to test. Have you tested your code with a 45 char word in a dictionary? The code is generating a seg fault when the dictionary is composed of exactly 1 word of 45 chars. That seg fault is in unload(). I'm highly confident that you haven't looked for the problem there yet, so I'll give you a chance. You ...


Only top voted, non community-wiki answers of a minimum length are eligible