const unsigned char shu_shuru_hz[32]=
{0x44,0xF4,0x4F,0xE4,0x44,0x64,0x90,0x98,0x94,0x93,0x14,0x98,0x08,0xD0,
0x10,0x00,0x04,0x04,0x04,0xFF,0x02,0x02,0xFF,0x4A,0x8A,0x7F,0x00,0x3F,0x80,0xFF,0x00,0x00};/*"输",2*//* (16 X 16 , 宋体 )*/
const unsigned char ru_shuru_hz[32]=
{0x00,0x00,0x00,0x00,0x01,0x83,0x76,0x18,0x60,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x40,0x20,0x10,0x08,0x06,0x01,0x00,0x00,0x00,0x00,0x03,0x04,0x18,0x30,0x10,0x00};/*"入",3*//* (16 X 16 , 宋体 )*/
const unsigned char mi_mima_hz[32]=
{0x00,0x58,0x24,0x04,0xF4,0x04,0x8D,0xB6,0x44,0x34,0xCC,0x94,0x24,0xCC,
0x04,0x00,0x02,0x06,0x02,0x79,0x41,0x41,0x41,0x7D,0x41,0x41,0x41,0x40,0x78,0x00,0x00,0x00};/*"密",4*//* (16 X 16 , 宋体 )*/
const unsigned char ma_mima_hz[32]=
{0x02,0x82,0xE2,0x5E,0x42,0xC2,0x00,0x02,0xFA,0x82,0x82,0x82,0xFE,0x80,
0x00,0x00,0x01,0x00,0x7F,0x10,0x10,0x3F,0x00,0x04,0x04,0x04,0x44,0x84,0x40,0x3F,0x00,0x00};/*"码",5*//* (16 X 16 , 宋体 )*/
const unsigned char *const pstring[4]={shu_shuru_hz,ru_shuru_hz,mi_mima_hz,ma_mima_hz,0};
void ShowString(unsigned char *string)
{
while(*string)
PutOneChinese(*string);
}
比如 PutOneChinese(shu_shuru_hz);是可以正确的输出汉字的。
但是不知道该怎么样用ShowString(unsigned char *string)来输出连续的汉字。
比如 我想实现ShowString(pstring);可以输出四个汉字。
但是ShowString()里面的形参不知该如何定义?是用指针的指针还是指向数组的指针?
const unsigned char *const pstring[4]={shu_shuru_hz,ru_shuru_hz,mi_mima_hz,ma_mima_hz,0};
上面这个定义是不是也有问题??
弄了整整一天都不行,只能请教各位高手了。。。
请大家指教一下!!! |