char 转 string
string str; ostringstream outBuffer(std::ios::binary); for (int i = 0; i < len; i++) { char byte = 'c'; outBuffer << byte; } str = ourBuffer.str();
欢迎分享,转载请注明来源:内存溢出
char 转 string
string str; ostringstream outBuffer(std::ios::binary); for (int i = 0; i < len; i++) { char byte = 'c'; outBuffer << byte; } str = ourBuffer.str();
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)