Skip to content

Commit

Permalink
daym
Browse files Browse the repository at this point in the history
  • Loading branch information
Футин Даниил Евгеньевич committed Oct 4, 2019

Verified

This commit was signed with the committer’s verified signature.
TheLocehiliosan Tim Byrne
1 parent cc732eb commit 24d72bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/tset.cpp
Original file line number Diff line number Diff line change
@@ -96,7 +96,14 @@ TSet TSet::operator+(const TSet &s) // объединение

TSet TSet::operator+(const int Elem) // объединение с элементом
{
return *this;
if ((Elem > -1) && (Elem < BitField.GetLength())) {
TSet result(MaxPower);
TBitField E(Elem);
E.SetBit(Elem);
result.BitField = BitField | E;
return result;
}
else throw - 1;
}

TSet TSet::operator-(const int Elem) // разность с элементом

0 comments on commit 24d72bb

Please sign in to comment.