Using xor or bit shifts with datatype char
in
Programming Questions
•
4 months ago
Hi,
I'm trying to use multiply(*), xor (^) and bit shift left(<<) on character data types (ex buf4 = (x<<2), buf4 = x*4, buf1 = state[buf4] ^ state[buf4+1], and so on). But when I do so, I get the error "cannot convert from int to char". I thought the problem could be the integer values used in the equations, but even without them the same error persists. Are character data types incapable of these functions?
Thanks,
Ryan
1