bitsets
is it possible to convert bitset<8> to an array of characters of integers?
I have bitset<8> v8 and its value is something li开发者_运维百科ke \"11001101\", something in binary, how can we convert it to an array of characters or integers in c++?To convert to an array of[详细]
2023-02-11 03:26 分类:问答Easy way to convert a string of 0's and 1's into a character? Plain C
I\'m doing a steganograph开发者_StackOverflowy project where I read in bytes from a ppm file and add the least significant bit to an array. So once 8 bytes are read in, I would have 8 bits in my array[详细]
2022-12-24 00:50 分类:问答