On 27 Mar 2007 23:31:59 -0700, Karthikeyan M <[EMAIL PROTECTED]> wrote: > From: John Gunnarsson > >> How do I convert a integer to a string in c++ the best way? >> So far I have been using the following snippet, which seems a bit >> overklll. > > We can use atoi function in C. But am not sure about C++. As C++ > supports C, I think we can use this built in function there also !
atoi() (ascii-to-integer) exists in both languages, however it doesn't do what the OP wants, which is integer-to-ascii -- PJH Aio, quantitas magna frumentorum est
