String concatenation in C++ cocos2d-x Often we need to concatenate strings using the + operator. A shortcut way to do this in C++ is as follows: CCSprite *sprite = CCSprite::spriteWithFile((name+".png").c_str()); Title : String concatenation in C++ cocos2d-x Posted by : monday Date : 04:23 Labels : Education
0 comments:
Post a Comment