Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- #include "sets.h"
- using namespace std;
- int main() {
- int cnt = 0;
- char universal[] = "erDUwmBxNz";
- char set[] = "abe";
- char subset[] = "abc";
- //while (bmuni[cnt] != '\0') {
- // bmuni[cnt] = '1';
- // cnt++;
- //}
- //for (int i = 0; i < sz; i++) {
- // cout << bmuni[i] << "\t";
- //}
- //
- int size = strlen(universal);
- char* bmA = new char[size+1];
- char* bmB = new char[size + 1];
- char* checkBm = new char[size + 1];
- int size2 = strlen(set);
- Bitmask(universal, set, bmA);
- for (size_t t = 0; t < size; t++)
- {
- std::cout << bmA[t];
- }
- std::cout << std::endl;
- Bitmask(universal, subset, bmB);
- for (size_t t = 0; t < size; t++)
- {
- std::cout << bmB[t];
- }
- cout << endl;
- Subtract(universal, bmB, bmA, checkBm);
- cout << endl;
- MakeSubset(universal, checkBm);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement