2011-10-28 72 views

回答

4

假设你的意思是std::bitset假设它适合一个无符号长整数,然后unsigned long result = your_bits.to_ulong()^your_int;