Quote:
|
Originally Posted by JJkiller
Bailopan, u seem to know a lot about this kinda stuff. I was always wondering, why ==? Didn't whats his name say nothing can be more equal than =. lol
|
== is a comparator ( often double sign like &&, ||, <<, >> etc...)
= is just to assign a value to a variable like a=0
(you set a to 0)
so
a=1
b=2
c=a+b
(c = 3)
if you made that now
if (a == b)
a = b + 1
else if b < a
a = b - 1
etc....
- the << and >> is a byte (i believe) utilisation
i use often == (but remind)
a == 1 can be if(a)
and a == 0 can be if(!a)
__________________