I want to translate a string into a bitstream and then manipulate indivisual bits of the bitstream. I am able to do the conversion from string to a binary string. But since the return type is string the 0s and 1s are not treated as bits. How do I extract each bit such that the compiler recognizes it as a bit and not a char or a string?
i now want the individual bits in the generated bit string so that i can perform various bitwise operations such as inversion etc. How do i extract the bits as bits and not chars?