C++ conversion of integers into strings, how

1 reply · 3K views · last reply
chandubaba
Messages
39
Reaction score
0
how to convert an input of integer(more than 1 character) type into output which is in string in c++
 
(I'm assuming you've acquired an int value that you wish to convert into a char* or a std::string)

Use std::stringstream. Or do it the C-way with sprintf. Or, roll your own method.