Similar way to use NSString in cocos2d-x

Hi I, have the following line of code in ios a game

- (id)initWithLayer:(HelloWorldLayer *)layer type:(int)type hp:(int)hp {

    NSString *spriteFrameName = [NSString stringWithFormat:@"tank%d_base.png", type];    
    //...more code
    return self;
}

It’s possible to use CCString or other thing that can make something similar that NSString do?

I think there is a CCNS utility function under cocoa folder, and there is a format function. Otherwise look at any other c++ string function would work

You can use these libraries and make all the classes look similar to your objective c classes

https://github.com/duranamu/Cocos :slight_smile: