注册 登录
编程论坛 VC++/MFC

定义一个结构数组的时候报错,不知道哪里问题

emoly 发布于 2013-07-13 23:42, 501 次点击
SERVICE_TABLE_ENTRY DispatchTable[]=
    {
        {"system",ServiceMain},
        {NULL,NULL};
    };

如题: 环境在win7 vc 6.0

error C2059: syntax error : ';'
C4508: 'main' : function should return a value; 'void' return type assumed
error C2143: syntax error : missing ';' before 'return'
 error C2143: syntax error : missing ';' before '}'
error C2143: syntax error : missing ';' before '}'
error C2143: syntax error : missing ';' before '}'
1 回复
#2
yuccn2013-07-14 16:15
{NULL,NULL}; 后面的那个分号去掉看看
1