Okay, I have this program I have to write. I think I get the basis of the idea, but I'm a little confused about parts of the instructions. Here's the instructions.
Write a C++ program that uses bit strings to represent sets, and finds A^B, AUB, A-B, where A and B are sets of strings. Read A and B from a file of two lines. Do not hardcode the file name, instead, prompt it from the user. The first line contains elements of A, the second line contains elements of B. Elements are separated by exactly one blank.
I get everything except the first line. I have absolutely no clue how they want me to use bit strings to represent the sets.
I figured I'd read in the lines into two arrays and then compare them that way, but is that the right way to approach this or am I doing this wrong?