【发布时间】:2011-02-23 06:46:33
【问题描述】:
我打算做一个这样的程序:
loop
read first character
read second character
make a two-digit hexadecimal number from the two characters
convert the hexadecimal number into decimal
display the ascii character corresponding to that number.
end loop
我遇到的问题是将这两个字符转换为十六进制数,然后将其转换为十进制数。一旦我有一个十进制数字,我就可以显示 ascii 字符。
【问题讨论】: