2013-02-17 62 views

回答

3

他們三分球,所以你應該取消引用它們:

result = *operand1 + *operand2; 

或者更改功能參數:

-(double)performOperationWith:(double)operand1 And:(double)operand2 {...} 
2

只需卸下*

-(double)performOperationWith:(double)operand1 And:(double)operand2 { 
    double result = 0.0; 
    result = operand1 + operand2; 
    return result; 
} 
相關問題