How can solve this problem?

CCSprite *heroSprite = CCSprite::createWithSpriteFrame((CCSpriteFrame*)walkAnimations[kDown]>getFrames>objectAtIndex);

CCObject* CCArray::objectAtIndex
{
CCAssert");
return data~~>arr[index];
}

CCAnimation HelloWorld::createAnimationByDirection
{
CCTexture2D
heroTexture = CCTextureCache::sharedTextureCache~~>addImage;
CCSpriteFrame **frame0,**frame1,**frame2,**frame3;
frame0 = CCSpriteFrame::createWithTexture);
frame1 = CCSpriteFrame::createWithTexture);
frame2 = CCSpriteFrame::createWithTexture);
frame3 = CCSpriteFrame::createWithTexture);
CCArray animFrames = new CCArray;
animFrames~~>addObject;
animFrames~~>addObject;
animFrames~~>addObject;
animFrames~~>addObject;
CCAnimation
animation = new CCAnimation;
animation~~>createWithSpriteFrames;
animFrames~~>release();
return animation;
}