DSP2812 编程 字符定义错误

2019-07-25 15:22发布

我用DSP2812 编写一段经ADDA转换后用LCD显示的程序 ,其中有一段:
   shi=a1[0]/10;
                ge=a1[0]/1;
                shifen=a1[0]/0.1;
                baifen=a1[0]/0.01;
        str2[0]="shi";
                str2[1]="ge";
                str2[2]=".";
                str2[3]="shifen";
                str2[4]="baifen";
                str2[5]="V";
总是出现这个错误“a value of type "char *" cannot be assigned to an entity of type "unsigned char"”
“ variable "shi" was set but never used”。  我定义
  unsigned char shi,ge,shifen,baifen;
  请问这是哪除了问题???
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。