![]() |
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. |
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. |
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. |
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.