'Implementing set with a bit array

How I can use a bit array or a boolean array to implement a structure of set? I don't know how I can include the bit array, I was thinking that this array has to to remember which elements appear in the set.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source