Posted: 26 Jul 2011
Updated: 26 Jul 2011
Licence: The Code Project Open License (CPOL)
Not sure I got it correctly... But if I did, here's a simpler solution which doesn't rely on implication. Bitfields are ubiquitous in C programming, they are used to specify flags. If, for instance, your hotel requirements amount to bitfield 01101010 then you can simply AND the bitfield with...