C++ 数字转字符串

#include <sstream>

string num2str( int i)
{
        stringstream ss;
        ss<<i;
        return ss.strs();
}

 

你可能感兴趣的:(C++ 数字转字符串)