I am using std::bitset
to give me a binary representation of a number. I now want to use this and output to std::cout
using only the binary representation - I do not want the ASCII representation of std::bitset
- I merely want to output my bitset as it is in memory.
bitset<32> bits = a;
cout << bits; //produces the ASCII characters for '1' and '0' depending on a