如何在 Visual C++ 中将整数转换为字符串指针?
使用字符串流
#include <sstream> stringstream ss; ss << i; string s = ss.str();