Hi,

How do I convert a integer to a string in c++ the best way?
So far I have been using the following snippet, which seems a bit overklll.

string intToStr(const int value)
{
        ostringstream result;
        
        result << value;
        
        return result.str();
}


Could someone enlighten me :)

//John

Reply via email to