/*显示一个字符串此串字符有可能超过16个但都在32个之内 同时有几个字符串 uchar str3[]="The AAAAAAAA value is :"; uchar str5[]="The current bbbbbbbb is :";*/ void writstring(uchar string[]) { uchar i; init(); possit(0x00); i=0; while((string!='\0')||(i<=16)) { write_dat(string); i++; } possit(0x40); while((string!='\0')||(i<=32)) { write_dat(string); i++; } } 主程序 main() { writstring(str3); while(1); } 显示结果是 The AAAAAAAA val The current bbbb 其实我只想显示 The AAAAAAAA value is : |