私は次のコードを書いていますが、コンパイラが警告またはエラーを表示しないのはなぜですか? Objective-CでgetActiveComputer関数の関数の戻り値
const computer* const activeComputer = [self.setting getActiveComputer];
activeComputer.name = [service name];
activeComputer.ipAddr = ipAddress;
宣言
- (const computer* const) getActiveComputer
'computer'は' struct'またはオブジェクトですか?違いがあります。 – jer