开发者

Error Expected ']' before token-Objective C

I am new to Objective C. I am getting errors when declaring char tempbuf[RMH_EVENT+1];

where RMH_EVENT is a macro containing the value 60. Why is it showing me the error ? I have declared another char above it as char buf[512]; in the same way as I declared the tempbuf, but it's not showing me 开发者_运维问答any error.


Without seeing the source it's hard to tell what the problem is, but I'm guessing you probably did something like this:

#define RMH_EVENT 60;

instead of:

#define RMH_EVENT 60
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜