Nov 14, 2013 at 9:53pm
1 2
|
if(i=0) // Value of i=0 is 0. Boolean value of 0 is false. This if is always false
if(i==0) // As should be.
|
Last edited on Nov 14, 2013 at 9:54pm
Nov 14, 2013 at 9:57pm
lol thank you so much. how could i forget about that omg, now i wasted 1hour by searching my mistake and then it's such an easy mistake