728x90 AdSpace

Latest Article



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());
   

no image
  • Title : String concatenation in C++ cocos2d-x
  • Posted by :
  • Date : 04:23
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment