带参数的类方法.m:74:18: warning: instance method '-ji:::' not found
(return type defaults to 'id') [-Wobjc-method-access]
int d = [jsq ji:10:11:10];
^~
带参数的类方法.m:12:12: note: receiver is instance of class declared here
@interface jisuanqi : NSObject
^
带参数的类方法.m:74:9: warning: incompatible pointer to integer
conversion initializing 'int' with an expression of type 'id'
[-Wint-conversion]
int d = [jsq ji:10:11:10];
^ ~~~~~~~~~~~~~~~~~
带参数的类方法.m:75:18: warning: instance method '-ji2:::' not found
(return type defaults to 'id') [-Wobjc-method-access]
int e = [jsq ji2:10:11:10];
^~~
带参数的类方法.m:12:12: note: receiver is instance of class declared here
@interface jisuanqi : NSObject
^
带参数的类方法.m:75:9: warning: incompatible pointer to integer
conversion initializing 'int' with an expression of type 'id'
[-Wint-conversion]
int e = [jsq ji2:10:11:10];
^ ~~~~~~~~~~~~~~~~~~
4 warnings generated.
*/
问题出在了,求三个数的积那段代码 但是看不懂下面的警告,是什么意思啊! 该怎么改啊
复制代码
作者: 魔法少年十三 时间: 2014-10-20 14:09
int b = [jsq square:10];
int c = [jsq sum:10:11];
int d = [jsq jiWithNum1:10 andNum2:11 andNum3:10];//74行
int e = [jsq ji2:10 num2:11 num3:10];//75行