struct DIStruct
{
uchar DI3, DI2, DI1, DI0;
void (*operate)(uchar, uchar);
}DIStruct;
void UA(uchar num, uchar flag)
{
...
}
struct DIStruct table1[]=
{
{ 0x02, 0x01, 0x01, 0x00, UA }
}
(*(table1[0].operate))(1, 0);
编译错误提示:can't generate code for this expression
|