Zdravim, co presne znamena toto?
bool Vector::byteNthBitGet(int B, int n)
{
return ((*this)[B] & (1 << n));
}
byte Vector::byteNthBitTo0(int B, int n)
{
return (*this)[B] &= (1 << n);
}
byte Vector::byteNthBitTo1(int B, int n)
{
return (*this)[B] |= (1 << n);
}
byte Vector::byteNthBitToggle(int B, int n)
{
return (*this)[B] ^= (1 << n);
}
(*this) ? a toto porovnavanie, ak to je porovnavanie &, &=, |=, ^=
dik za odpoved