New answers tagged

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 ...
user avatar
  • 63.5k
0 votes

Error when calling seconnd function - expected expression

It's a scope issue. k is declared inside the curly braces of the FOR loop. That means that when the code exits the for loop, k will cease to exist. K should be declared outside of any loops or if ...
user avatar
  • 63.5k

Top 50 recent answers are included