1
當我用這錯誤在使用schedule_selector在Cococs2d-X
void addCats();//Declareation in .h file
this->schedule(schedule_selector(HelloWorld::addCats()), 2.0);//addCats is a function
每一次,但是當我使用
//In.h file
void addCats(int);
//In.cpp file
int i=10;
this->schedule(schedule_selector(HelloWorld::addCats(i)), 2.0);
然後給錯誤它工作正常addCats函數調用::左值需要作爲一元'&'操作數。 請Clearify它,問題是什麼,它是如何工作....
並請詢問的Cocos2D-X的教程&研究任何鏈接或PDF ...
謝謝合租多少....