In many C programming, you should use the Chinese characters to prompt or human-computer interaction, and the current Turbo C integrated development environment is not Chinese, how to develop C procedures that can display Chinese characters? The following method can help you show Chinese characters in the Western environment. This method is to call the Chinese Chinese word library for Chinese characters. National Standards: The Chinese customs is divided into 94 districts, and 94 Chinese characters in each zone (in place are different), each Chinese is determined in the Chinese graph library, which is the location code of Chinese characters. Each Chinese character is stored in a dot pattern in the library, which is generally 16 × 16-point array (32 bytes), 24 × 24 o'clock (72 bytes), each point with a binary bit (0 or 1) Representation, the corresponding Chinese character is displayed on the screen. Due to the Chinese environment, the internal code of Chinese characters, we must convert it into a zone code, calculate the offset, find the corresponding Chinese characters from the franchis, and display it.
The internal code conversion to the zone code method is as follows: QH = C1-0XA0 WH = C2-0XA0 its location code is: Qw = QH * 0xFF Wh this Chinese word in the font is: Offset = (94 * (QH-1) (WH-1)) * 32L program: #include