这是what

来源:互联网 发布:淘宝正品代购是真的吗 编辑:程序博客网 时间:2024/06/02 13:45
typedef struct OptionGroupDef {
    const char *name;
    const char *sep;
    int flags;
} OptionGroupDef;


enum OptGroup {
    GROUP_OUTFILE,
    GROUP_INFILE,
};


static const OptionGroupDef groups[] = {
    [GROUP_OUTFILE] = { "output file",  NULL, 5 },
    [GROUP_INFILE]  = { "input file",   "i",  6 },
};


int main()
{

return 0;
}


直接编译会失败 cpp改成c错误减少 我觉得应该使用gcc来编译

0 0