Advertisement
HICONT

Main

Sep 23rd, 2022 (edited)
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <locale>
  3. #include <Windows.h>
  4. #include <conio.h>
  5. #include "Set.h"
  6. #include <String>
  7.  
  8. using namespace std;
  9.  
  10. int main() {
  11.     //Set Lab;
  12.     //Lab.runnn();
  13.     TBitField A(115);
  14.     TBitField B(115);
  15.    
  16.     B.Add(2, 115);
  17.     B.Add(32, 115);
  18.     B.Add(14, 115);
  19.     A.Add(3, 115);
  20.     A.Add(64, 115);
  21.     A.Add(100, 115);
  22.     cout << A.TBitField_to_String(115) << endl;
  23.     cout << B.TBitField_to_String(115) << endl;
  24.     A = B;
  25.     cout << A.TBitField_to_String(115) << endl;
  26.     TBitField C(B);
  27.     cout << C.TBitField_to_String(115) << endl;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement