How to convert binary to ASCII characters?
- ✓Follow publicly
- ✓Follow privately
i have been missing tons of school, i go to high school im a senior year 11 i take Software Design and we have been given homework to convert binary codes to ASCII characters which i ...show more
Other Answers (2)Rated Highest
This is a relatively easy problem. There is no need to worry about character codes (if I understand the question correctly). I take it you may get the string "1000001" and need to convert it into the character 'A'. Basically this requires parsing the ones and zeroes, than creating the actual numeric value (i.e. as an int in C++). This can be done with some bit-twiddling (using powers of two to create the number). From this just cast it to a character (type char in C++). hat should do it.