【发布时间】:2017-11-09 23:47:45
【问题描述】:
struct customFunction {
int id;
int numOfSubfunctions;
int subfunctions[];
};
const customFunction supportedFunctions[] = {
{
0x01,
1,
{
0x01
}
},
{
0x02,
2,
{
0x01,
0x02
}
}
...
};
supportedFunctions 数组将用于检查将来是否支持特定功能,并用于标识要使用哪个功能等。
目前,我出现了这个错误:
“int [0]”的初始化程序太多
指向
{
0x01
}
对于任何函数,可能有0 - n 个子函数。
【问题讨论】: