-1
可能重複:
Asterisk in parenthesis in Objective-C… What does it mean?Objective C的方法星號
沒有人可以找到下面的代碼一些資源或詳細解釋
-(void) add:(Cal *)c;
我是很新的OBJ -c.星號在代碼中的含義是什麼?
謝謝。
可能重複:
Asterisk in parenthesis in Objective-C… What does it mean?Objective C的方法星號
沒有人可以找到下面的代碼一些資源或詳細解釋
-(void) add:(Cal *)c;
我是很新的OBJ -c.星號在代碼中的含義是什麼?
謝謝。
這意味着該方法的參數是指向「Cal」對象的實例的指針。
dup [Objective-C括號中的星號...是什麼意思?](http://stackoverflow.com/questions/514139/asterisk-in-parenthesis-in-objective-c-what-does -it-mean)和[更多](http://stackoverflow.com/search?q=%5Bjective_c%5D+%2Bmethod+%2Basterisk)。 – outis 2012-07-27 07:44:52
一個指針就像在C – TheAmateurProgrammer 2012-07-27 07:45:21
哦,我看到星號代表回到Cal? – Ben 2012-07-27 07:49:14