Numbers to String?

Started by
3 comments, last by Hanz 21 years, 5 months ago
How do you convert an interger to a string?
Advertisement
what programming language are you using?
Try sprintf().

pik, could you change the signature please, just for me. i think it encourages sexism and the objectification of women. and this isn't really the place for it.

thanks

[edited by - petewood on November 4, 2002 10:56:05 AM]
Not to mention the signature is long as hell. But sprintf() is maybe the best for the OP, although personally I like boost::lexical_cast

cin >> Boost >> GOTW tips >> GOTW articles >> CUJ expert columns >> FAQ lite;

This topic is closed to new replies.

Advertisement