On 19 Feb, 21:31, "pargat.si...@gmail.com" <pargat.si...@gmail.com>
wrote:
> Hi Everyone:
>
[quoted text clipped - 66 lines]
>
> Thanks in advance.
just speculating but what is ^...
testing
int a = 5;
int b = 2;
int c = a ^ b;
c is 7
a 1001
b 0010
c 1001
Aha, use math.pow instead, oh, and that was not much but a tad off...
hope you arent working for a bank company ;)
//CY
christery@gmail.com - 19 Feb 2008 22:22 GMT
On 19 Feb, 23:00, christ...@gmail.com wrote:
> On 19 Feb, 21:31, "pargat.si...@gmail.com" <pargat.si...@gmail.com>
> wrote:
[quoted text clipped - 91 lines]
>
> - Visa citerad text -
oh...
> a 101
> b 010
> c 101
sorry...
aha´, u dont get it... lets try...
int a = 4;
int b = 1;
int c = a ^ b;
will be 5
a= 100
b= 001
c= 101
Oh, its XOR... *smile*
//CY