各位高手请帮帮忙,请看下面的程序,我想定义一个静态指针,在每次调用air()时,airdata_dptr都指向下一行数组,实际上做不到!
unsigned char men[][3]=
{
0x0B2,0×00,0×04,
0x0F6,0×00,0×03,
0x0F2,0×05,0×01,
0x0B6,0×00,0×01,
0x0F2,0×70,0×05,
0x0B6,0×00,0×01,
0x0F2,0×90,0×01,
0x0B6,0×00,0×01}
void air()
{
unsigned char * airdata_dptr)[3];
static airdata_dptr=men;
airdata_dptr++;
}
void main(void)
{
air();
}
>> 本文固定链接: http://www.vcgood.com/archives/2233
可能是你指针设置的问题吧, 试试改指针 然后再debug