阅读背景:

在C ++中,如何为用户输入的字母/字符串分配十六进制值?

来源:互联网 

I need some help. Currently I'm writing a program where the user inputs a sentence, the sentence is put into a string, then the string is broken up and each character is displayed on a 7-segment display for 2 seconds each. The problem I'm having is how to assign a hex value to each character; when each character is parsed from the string, naturally it's using its ASCII decimal value. However, the ASCII decimal value will not display the appropriate character on the 7-segment display, which is why I need to change the value so if a user inputs an "h" it'll actually look like an "h" on the display. Could someone please help? I've tried a few things, like '(letter)' == (0x__), but it still displays using the ASCII decimal value.I need some help. Currently I'm writing a progr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: