标签:
int i = 123; char buffer[20]; std::string number("number = "); std::string str = number + itoa(i, buffer, 10);
int i = 123; std::string number("number = "); std::stringstream ss; ss << number << i; std::string str = ss.str();
标签:
原文地址:http://www.cnblogs.com/StuLiuJun/p/4966017.html