// 第一种方式 char *s; sprintf(s, "%d",10);
// 第二种方式 std::string s1 = StringUtils::format("%d",10);
// 第三种方式 std::string s2 = Value(10).asString();
// 第四种方式 std::string s3 = StringUtils::toString(10);
auto label1 = Label::createWithTTF(s, "fonts/arial.ttf", 40);
label1->setPosition(Vec2(visibleSize.width/3, visibleSize.height/2));
this->addChild(label1);