>From: "John Gunnarsson" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [c-prog] This is a stupid question
>Date: Wed, 28 Mar 2007 00:09:52 +0200
>
>Hi,
>
>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.
>
>string intToStr(const int value)
>{
> ostringstream result;
>
> result << value;
>
> return result.str();
>}
>
>
>Could someone enlighten me :)
>
>//John
itoa(number, string, 10);
where 10 is the base used is what i use
g
_________________________________________________________________
5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free
quotes - *Terms
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910