i have tried hundreds of times!so simple code can’t correctly run,who can tell me why?
CCArray * arr=CCArray::array();
CCSprite * sprite=CCSprite::create(“001.png”);
arr~~>addobject;//an assertion error occured here
i added arr~~>retain() but the error still occured.if there is no array,i couldn’t continue
coding.