[ANSWERED]Animation tutorial

Could anyone help me out in creating a simple animation?
I have 3 png files ready to be animated.
Currently this is the code that I have I just tried to copy and convert from a cocos2d book unfortunately I don’t know how to run it.

    CCSprite* sideKick = CCSprite::spriteWithFile("heroDownStand.png");
    sideKick->setPosition(ccp(winSize.width/2,winSize.height/2));
    this->addChild(sideKick);

    CCAnimation* sideKickMoveDown = CCAnimation::animation();
    sideKickMoveDown->addFrameWithFileName("heroDownWalk1.png");
    sideKickMoveDown->addFrameWithFileName("heroDownWalk2.png");

    CCFiniteTimeAction* sideKickMoveDownAction = CCAnimate::actionWithDuration((ccTime)0.5f,sideKickMoveDown,true);

This is tutorial for Objective C, but its easy to translate it to C++.

[[http://www.raywenderlich.com/1271/how-to-use-animations-and-sprite-sheets-in-cocos2d]]

Thanks milda, been having tough time converting objective c codes, hopefully the community could post some converted tutorials.