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:
Encoding sample
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?
fliggygeek
0
Newbie Poster
Recommended Answers
Jump to PostFrom 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
Clinton Portis
211
Practically a Posting Shark
Clinton Portis
211
Practically a Posting Shark
Clinton Portis
211
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.