Quote:Original post by wodinoneeye
Forgot to initialize b to zero in each case???? (or even define it as a var....)
That was intentional. The original poster didn't include a declaration for b, so I'm assuming it's declared elsewhere in unposted code, but thanks for mentioning it. [smile]
(And as a note for mattnenterprise: if b is in fact NOT declared elsewhere then yes, there should be an "int b = 0;" in there.)