Answers for "convert unsigned long to string c++"

C++
0

convert unsigned long to string c++

//You can use stringstream else...
#include <sstream>

template <class T>
inline std::string to_string (const T& t)
{
    std::stringstream ss;
    ss << t;
    return ss.str();
}
// You can convert any value to string by creating another variable and
// importing your other non-string variable
string to_string (unsigned long val);
Posted by: Guest on September-27-2021

Browse Popular Code Answers by Language