开发者

Expected identifier before "{" token error

开发者 https://www.devze.com 2023-03-03 09:28 出处:网络
Hi I开发者_C百科 am making a demo off of \"Beginning iphone Games Development\" and I have the Expected identifier before \"{\" error on:

Hi I开发者_C百科 am making a demo off of "Beginning iphone Games Development" and I have the Expected identifier before "{" error on:

-(CGFloat) angle:
{
    return rotation*180.0/3.141592;
}

Can you please help?


Remove the colon after angle. The colon is telling the compiler that your method takes an argument, and it's reporting an error because there isn't one.

0

精彩评论

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