Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Integer to String

Name: Anonymous 2008-06-07 5:44

Hi /prog/.

I am right now working on my C++ project for my programming class and I started wondering. What method's do you use to convert integer to string? There is so many of them, and most require at least 4 additional code lines. Which method do you prefer?

Name: Anonymous 2008-06-08 12:57

>>46
i tried to compile it.
your shitty do { ... } while 0 doesn't work if you want the macro to actually return something.
the way you wrote it is completely useless because it constructs a string and then doesn't give you any way to get at it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List