cocos2d-x杂记

//将数字类型转换成sting类型
template<typename T>
string Convert2String(const T &value)
{
	stringstream ss;
	ss<<value;
	return ss.str();
}

  合并字符串:

	char* page = new char[9];
	sprintf(page,"%d/%d",123,200);

猜你喜欢

转载自3895177.iteye.com/blog/1923765