Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

stringstream stream number to string

#include <sstream>

std::string number_to_string(int num) {
    std::stringstream stream; 
    stream << num;
    return stream.str();
}
 
PREVIOUS NEXT
Tagged: #stringstream #stream #number #string
ADD COMMENT
Topic
Name
8+3 =