解决问题crosses initialization of char

来源:互联网 发布:免费手机短信群发软件 编辑:程序博客网 时间:2024/06/01 15:54




如题所述:

原因如下展示:

uchar AppStru_[4]={0,0,1,0}; //index count  statuschar *DataAddr ;switch(type){case C2ABlockingZone:UAP = 0xFe ;AppStru_[0]= 0x07 ;AppStru_[1]= 0xD1 ;char LATLONG_[2]={33,22};

这种编写方式错误,

对于  LATLONG_[2]  的初始化位置错误,不能在 switch case 里面。 应该如  AppStru_在外边初始化。


原创粉丝点击