Answers for "stringstream stream number to string"

C++
0

stringstream stream number to string

#include <sstream>

std::string number_to_string(int num) {
    std::stringstream stream; 
    stream << num;
    return stream.str();
}
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language