(*this).Show();
}
Word :: Word(const Word& B): S('A'+cnt++), w(0)
{
w = B.w;
}
Word& Word :: operator = (const Word& B)
{
if (this != &B)
{
w = B.w;
S = 'A' + cnt++;
}
return *this;
}
Word Word :: operator & (const Word& B) const
{
Word C(*this);
C.w &= B.w;
return C;
}
Word Word :: operator | (const Word& B) const
{
Word C(*this);
C.w |= B.w;
return C;
}
Word Word :: operator ~ () const
{
Word C;
C.w = ~w;
return C;
}
Санкт-Петербург
2020