How to write this cocos2d objective c code in c++

Hi all,

I am reading the cocos2d for Iphone development cook book.I don’t know objective-c ,I am using cocos2d-x
on visual studio 2008.
I want the below code line 4 to be converted to c++.

  1. //Specify the sprite frame and load it into a CCSprite
    2.CCSprite *alice = [CCSprite spriteWithSpriteFrameName:@“alice.png”];
    3.//Generate Mip Maps for the sprite
    4.[alice.texture generateMipmap];

CCSprite *alice = CCSprite::spriteWithSpriteFrameName(“alice.png”);
alice->getTexture()->generateMipmap();

I think you should refer to tests for more codes.