Материал: 930(2)

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам

(*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

Источник: https://studfile.net/preview/16587401/