开发者

Error Expected ']' before token-Objective C

开发者 https://www.devze.com 2023-03-03 00:17 出处:网络
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 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

精彩评论

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