Paul,

Out of curiosity, if I may ask, what kind of project do you currently work
on,
where you never have to convert int's to string's?

Personally, I have avoided the issue until I wrote a custom exception type
for
"out of bounds" errors where I included the errornous index in the message
text.

//John



On 28 Mar 2007 06:37:46 -0700, Paul Herring <[EMAIL PROTECTED]> wrote:
>
>   On 3/28/07, Karthikeyan M <[EMAIL PROTECTED]<Karthikeyan_M05%40infosys.com>>
> wrote:
> > On 27 Mar 2007 23:31:59 -0700, Karthikeyan M
> > > <[EMAIL PROTECTED] <Karthikeyan_M05%40infosys.com> > wrote:
> [...]
> > > > 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
> >
> > I think we do have itoa() function.
>
> Think again. It's not a Standard function, and thus not all compilers
> have it. Yours might, but others' might not.
>
> --
> PJH
> Aio, quantitas magna frumentorum est
>  
>


[Non-text portions of this message have been removed]

Reply via email to