Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string data = "0110011101100001011101010111010001101000011010010110010101110010";
- std::stringstream sstream(data);
- std::string output;
- while(sstream.good())
- {
- std::bitset<8> bits;
- sstream >> bits;
- char c = char(bits.to_ulong());
- output += c;
- }
- std::cout << output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement