I need a program that performs the main operations between two sets (union, intersection, difference, complement and symmetric difference)

  c++
int main()
{

    int sizeA, sizeB;

    cout << "Введiть кiлькiсть елементiв множини А: "; //enter the quantity of elements of the set A
    cin >> sizeA;
    int* arrA = new int[sizeA];

    cout << "Введiть кiлькiсть елементiв множини B: "; //enter the quantity of elements of the set B
    cin >> sizeB;
    int* arrB = new int[sizeB];

    cout << "nВведiть елементи множини А: " << endl; //enter the elements of the set A
    for (int i = 0; i < sizeA; i++)
    {
        cout << "Елемент " << i + 1 << ": ";
        cin >> arrA[i];
    }

    cout << "nВведiть елементи множини B: " << endl; //enter the elements of the set B
    for (int i = 0; i < sizeB; i++)
    {
        cout << "Елемент " << i + 1 << ": ";
        cin >> arrB[i];
    }
}

I made just an input from user and I have no idea how to perform operations between sets using arrays.
I know that many people recommend using "include set" or something like this, and perhaps it would be wise, but I need to make it using arrays if it is possible. Help me please and thanks in advance.

Source: Windows Questions C++

LEAVE A COMMENT