Hot answers tagged

3 votes

Problem set 3 Plurality ISSUE cs50

If you fix the missing semicolon that @DinoCoderSaurus mentioned, this works fine. I suspect you hadn't compiled it after writing your function, so the default return false was still being used.
  • 18.4k
1 vote

Use of bool in PSET2

Your use of bool is correct, subject to the real problem. The function call isn't. I think your mind just got stuck using a pattern though. Look at the following code: // Make sure every character ...
  • 64.7k

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