http://rafb.net/p/YqmCaL65.html what about this error?
what about it?
it's an output of a "make"
yes, and?
i don't understand how to fix it
provide the proper options for using readline.
where?
uh.
in the makefile would be best.
though i suppose you could do it by hand after the make fails.
hi
moo
is there a "hack" to bit compare ?
i think you must settle with deadmines.
no, just compare them.
I mean, 10 & 1000 doest return a positive value ..
should it?
(does)
what did you expect?
twkm, I expected 0
cause 1 & 0 = 0
is that really 10 and 1000 you are using?
uh, why do you expect 10 and 1000 to be "binary"?
10 is ten, and 1000 is one thousand. now work out which bits are involved, and them together, and what do you get?
this is why I ask if there is a "tip" to be able to bit compare using &
just use it.
but don't be an idiot about thinking that 10 is binary sometimes and decimal other times.
10 is decimal. period. if you want binary use strtol to convert from "10" to 2.
What is base2(00000000000000000000000000001010) & base2(00000000000000000000001111101000) ?
strtol \o/
what is the result of that bitwise operation?
xystic, .. 1 :$
ugh, base2.
still, why does it print 8 ?
No... the result is base2(00000000000000000000000000001000)...
can you write 10 in binary? what about 1000?
ok ok I've understoud :p
remember, those are decimal values, not binary.
I will
thanks all.