I am trying to represent 8 bit numbers with characters and I don't want to have to use an int to define the character, I want to use the actual character symbol. But when I use standard ASCII codes, everything outside of the range 32-100 something are completely different.
So I looped through all 256 ascii codes and printed them, for instance it said that this character '±' is code 241. But when I copy and paste that symbol from the console, or even use the alt code, it says that character is code -79... How can I get these two things to match up? Thank you!
https://stackoverflow.com/questions/65417777/ascii-character-codes-in-c-visual-studio-dont-match-up-with-actual-character December 23, 2020 at 08:57AM
没有评论:
发表评论