-->
当前位置:首页 > 题库

PROGRAMMING:Location code input method

Luz5年前 (2021-05-10)题库448
All Chinese characters and graphic symbols in GB 2312-80 are arranged into 94 × 94, each row is called a "area" (01 ~ 94 area), and each column is called a "bit" (01 ~ 94).
![ Title. JPG] (~ / 998d7393-039b-4fcf-8dd2-d28eed6bd2a4. JPG)
The internal code of Chinese characters consists of high and low bytes, which are obtained from area code and bit code plus 160. Namely:
High byte = area code + 160
Low byte = bit code + 160
Taking the Chinese character "Ai" as an example, its location code is 1614, that is, 16 areas and 14 bits
16 + 160 = 176
14 + 160 = 174
Output these two bytes (characters) in turn
```
putchar(176);
putchar(174);
```
Then a complete Chinese character "love" can be displayed on the screen.
```
love
```
Please write a program, input location code, output the corresponding Chinese characters.
####Input format
>Location code
####Output format
>Corresponding Chinese characters
####Input sample
```in
one thousand six hundred and fourteen
```
####Output sample
```out
love
```
---
You write this small program as a Chinese character input method - "location code input method" - to use it!
[click here to view GB2312-80 Chinese character location code table]( https://pan.baidu.com/s/1nQVHaRmfNte7a9nWjv1S6A )







answer:If there is no answer, please comment