+ 3

How can I convert an int to a string in c++? Thanks

int into strings

9th Jun 2017, 12:24 PM
Darvin Koka
Darvin Koka - avatar
8 Réponses
+ 6
https://code.sololearn.com/c7EO3s21GCGK/?ref=app If you want to do it without built-ins.
10th Jun 2017, 1:49 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
why not this int a = 1; String b = a + "";
9th Jun 2017, 1:28 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 4
@luka i know its c++ but i thought that it would even work in c++ so i told you to explain me........
9th Jun 2017, 2:55 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 3
@luka but it works in java.....ok.....can u explain me the reason.......?????????
9th Jun 2017, 2:40 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar