Coco2d-x Characters

Cocos2d String and std::string

StringUtils::format is format method

 std::string nformat = StringUtils::format("%d", 10);

std::string to const char *

Use c_str()

std::string nformat = StringUtils::format("%d", 3);
auto number = Label::create(nformat.c_str(), "Arial", 120);