I have a system that needs a 7 bit character string converted to an 8 bit string of binary ones and zeroes, in this fasion:
My main task is to find a way of generating a boolean array of each character and its corresponding 7 bits in order to do manipulations on them. ideally this would have the text string passed as a parameter to the program. I have searched a number of places for this sort of setup but no-one has any great ideas, can you help?
Jump to Post
From what I understand, an 'unsigned char' datatype will give you straight-up binary properties.. 8 bits, 1 byte, 0 to 255.
My main task is to find a way of generating a boolean array of each character
I think a pseudo-code for the task at hand could be this:
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.