私がこれを使用しているとき
void addCats();//Declareation in .h file
this->schedule( schedule_selector(HelloWorld::addCats()), 2.0 );//addCats is a function
毎回 addCats 関数呼び出しは正常に機能しますが、使用しているときは
//In.h file
void addCats(int);
//In.cpp file
int i=10;
this->schedule( schedule_selector(HelloWorld::addCats(i)), 2.0 );
次に、エラーが発生します :: lvalue is required as unary '&' operand. それを明確にしてください、何が問題なのか、どのように機能するのか....
また、Cocos2d-X のチュートリアルと学習については、任意のリンクまたは PDF を参照してください...
ありがとうございます。