【问题标题】:error on autoreleasepool line自动释放池行错误
【发布时间】:2023-03-12 11:08:01
【问题描述】:

我刚从目标 c 开始,我在书中有一个示例我应该遵循,但我遇到了一个错误,我不知道如何解决它。 here is the problem

编辑:好的,我将两个缺少的括号 {} 放在了正确的位置,但现在我还有两个错误!

this is the image

【问题讨论】:

  • 如果您有问题,请发布。
  • 缺少{}。应该是int main(int argc, char *argv[]) {@autoreleasepool { /*Your code about fraction*/}}

标签: objective-c xcode


【解决方案1】:

更仔细地阅读这本书;-)

左大括号{ 之前 @autoreleasepool 行和右大括号}return 0 行之前丢失

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-18
    • 2014-09-02
    • 2011-08-04
    • 2021-10-28
    相关资源
    最近更新 更多