C++oss 数字转字符串&str拼接

#include<sstream>
#incldue<string>
int main()
	ostringstream oss;
	oss<<"Work"<<num;
	string str = oss.str()
	char * str11=new char[strlen(str.c_str())+1];
	strcpy(str11,str.c_str());

猜你喜欢

转载自blog.csdn.net/jzlStudent/article/details/103275912