So I detected a bug in Objective C ++ for this code
For (int i = (max -4 - 4), max = 0; i & lt; = (maxBin + 3); i + +) {max + = (fftValLeft [i] * fftValLeft [i] ); } "max = 0;" It does not happen that I took initialization before the loop and now everything is fine.
This Xcode is with 4.6.3. Is it some kind of normal behavior?
You are creating a new variable named Maximum whose scope is only visible for the loop then one Once you exit the loop, the maximum price is not visible inside the loop that does not appear outside it. Hope that helps
No comments:
Post a Comment