Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   How to convert a STD string object to an integer? (http://www.velocityreviews.com/forums/t460596-how-to-convert-a-std-string-object-to-an-integer.html)

silverburgh.meryl@gmail.com 02-20-2007 09:32 PM

How to convert a STD string object to an integer?
 
Hi,

If I have a std string object , how to convert a STD string object to
an integer?

Thank you.


Victor Bazarov 02-20-2007 09:37 PM

Re: How to convert a STD string object to an integer?
 
silverburgh.meryl@gmail.com wrote:
> If I have a std string object , how to convert a STD string object to
> an integer?


Please see the FAQ and/or the news archives. Always do that before
posting, please.



silverburgh.meryl@gmail.com 02-20-2007 10:11 PM

Re: How to convert a STD string object to an integer?
 
On Feb 20, 3:37 pm, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
> silverburgh.me...@gmail.com wrote:
> > If I have a std string object , how to convert a STD string object to
> > an integer?

>
> Please see the FAQ and/or the news archives. Always do that before
> posting, please.


Thanks. I found this: http://www.cplusplus.com/reference/c...dlib/atoi.html
But it takes a char* c, not an STD string object.


red floyd 02-20-2007 10:23 PM

Re: How to convert a STD string object to an integer?
 
silverburgh.meryl@gmail.com wrote:
> On Feb 20, 3:37 pm, "Victor Bazarov" <v.Abaza...@comAcast.net> wrote:
>> silverburgh.me...@gmail.com wrote:
>>> If I have a std string object , how to convert a STD string object to
>>> an integer?

>> Please see the FAQ and/or the news archives. Always do that before
>> posting, please.

>
> Thanks. I found this: http://www.cplusplus.com/reference/c...dlib/atoi.html
> But it takes a char* c, not an STD string object.
>


As Victor told you, read the FAQ http://www.parashift.com/c++-faq-lite

In particular, FAQ 39.2
http://www.parashift.com/c++-faq-lit....html#faq-39.2



All times are GMT. The time now is 03:15 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57