求助,小弟最近学习,声明一个二维字符数组,求指教!

2019-03-24 15:37发布

格式如下: IAR编译出错~,   const uchar pagetxt[][]=
  {
  {"1.直流电压检测","2.数字时钟显示","3.数字时钟显示","4.数字时钟显示"},
  {"5.直流电压检55","6.数字时钟显66","7.数字时钟显77","8.数字时钟显88"},
  {"9.直流电压检99","10数字时钟显10","11数字时钟显11","12数字时钟显12"},
  {"13直流电压检13","14数字时钟显14","15数字时钟显15","16数字时钟显16"}
  };   请高手点拨~~ 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
7条回答
lalahu
2019-03-25 11:51

应该叫定义一个数组

 

const uchar pagetxt[][]= { {"1.直流电压检测","2.数字时钟显示","3.数字时钟显示","4.数字时钟显示"},

                                        {"5.直流电压检55","6.数字时钟显66","7.数字时钟显77","8.数字时钟显88"},

                                        {"9.直流电压检99","10数字时钟显10","11数字时钟显11","12数字时钟显12"},

                                        {"13直流电压检13","14数字时钟显14","15数字时钟显15","16数字时钟显16"} };

 

直接换成这样也可以啊,const uchar *pagetxt[15]={};

 这样pagetxt[0]="1.直流电压检测";

 

[ 本帖最后由 lalahu 于 2011-9-24 22:42 编辑 ]

一周热门 更多>

相关问题

    相关文章