Mail Archives: djgpp/2001/04/13/12:46:54
Hello.
Rafael Frongillo wrote:
> I have this integer that is assigned 0 when declared,
> and I am ABSOLUTELY POSITIVELY certain that I am not
> assigning it a value over 5 or less than -1. However,
> when running the program, somehow the value reaches
> 734532 or something like that. I also noticed many
> other variables doing the same thing, and frankly,
> it's kind of freaking me out... Please tell me what
> could be happening!
You could be writing a value more than 5 or less than -1. Maybe not
directly, but perhaps through an increment or decrement, if you have a
loop and the loop condition is incorrect.
If you post a sample of the code that doesn't work, maybe someone can
help.
Bye,
--
Richard Dawe <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Raw text -