"Sonoman" <fc*****@REMOVEspunge.org> wrote in message
news:2O*******************@fe03.atl2.webusenet.com ...
Hello All:
What is the difference between these two. Is there any site that can show
me the contrast and similarities between both of these? I have a couple of
begginer books that make no reference on this issue. Please help. Thanks
in advance.
Sonoman
You asking about the implementation of sets using either arrays of bits or
lists? Not really a C++ question.
The obvious difference it that you can only implement sets whose members are
chosen from a finite range of integral values using a bit array. You
couldn't have a set of words implemented as a bit array for instance, but a
list of strings would be possible. There are also efficiency differences
between the two.
Of course the C++ answer is to use neither, use std::set instead, (or even
std::bitset) that's what its for.
john