Questions tagged «xcode3.2»

3
编译错误:开关,“之前的期望表达式”
顺其自然,我重新制造了我的问题,因为这很容易解释。 这符合没有错误: switch (n) { case 1: NSLog(@""); NSString *aStr; break; default: break; } 这会编译错误,并且只缺少NSLog(): switch (n) { case 1: NSString *aStr; break; default: break; } 它抛出在编译“的误差预期表达‘的NSString’之前” 我在这里想念什么吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.