sonic85
21-10-2009, 16:17
Ciao,
ho un problema... dovrei fare lo XOR tra 3 termini Byte ma il compilatore non me lo lascia fare perchè vuole un cast ad int...mentre a me servono byte.
Come posso fare?
vi faccio un esempio qua sotto...
Es.
byte temp1=0x01;
byte temp2=0x10;
byte temp3=0x2;
byte XOR=temp1^temp2^temp3;// errore di tipo!!!
:help: :help:
ho un problema... dovrei fare lo XOR tra 3 termini Byte ma il compilatore non me lo lascia fare perchè vuole un cast ad int...mentre a me servono byte.
Come posso fare?
vi faccio un esempio qua sotto...
Es.
byte temp1=0x01;
byte temp2=0x10;
byte temp3=0x2;
byte XOR=temp1^temp2^temp3;// errore di tipo!!!
:help: :help: