0
Converting Integers to Strings in C++?
Please help. Newbie here. How many ways are there to convert integers to strings in C++? Which is most convenient and has greater compatibility? Please help by listing the methods, their syntax and which situation they would be used in. Much appreciated!
5 odpowiedzi
+ 6
std::to_string() is the easiest way but it doesn't work on SL compiler because its not fully C++11 compliant.
+ 3
build your own function as a template function.
you learn and you can use it for more than integers.
0
Thanks guys!
@Karl I tried using std::to_string but it didn't work.
@Very_hard thanks for the code! much appreciated!