Objective
1char *GetVersionName() 2{ 3 NSString buildNo = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; 4 char *res = (char*)malloc(strlen([buildNo UTF8String]) + 1); 5 strcpy(res, [buildNo UTF8String]); 6 return res; 7}
上記のソースコードが↓のコンパイルエラーになります。
Expected variable name or 'this' in lambda capture list
色々調べてみましたが、解決に至りません。
このコードで何かおかしい箇所はありますでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。