lundi 29 septembre 2014

Use std::bitset to produce binary file


Vote count:

0




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' as depending on a


asked 42 secs ago







Use std::bitset to produce binary file

Aucun commentaire:

Enregistrer un commentaire