一段奇怪的程序
typedef struct{
uchar MenuIndex;
uchar DownTo;
uchar UpTo;
uchar EnterTo;
uchar SetTo;
uchar StartTo;
uchar StopTo;
uchar ResetTo;
void (*CurrentOperate)();
}KeyTabStruct;
KeyTabStruct KeyTab[182]={
{0,255,255,255,1,170,255,172,*PowerOn},
{1 ,7 ,160,2 ,255,255,255,255,*RunModleSetLcd},
{2 ,3 ,6 ,1 ,255,255,255,255,*SelectAsAloneLcd},}
void PowerOn()
{;}
疑问1:PowerOn是个函数名,可 *PowerOn是什么意思?是错的么?
疑问2:void (*CurrentOperate)(); 与 *PowerOn 好像不是同一类型