467,915 Members | 1,740 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

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.

Feb 20 '07 #1
  • viewed: 2169
Share:
3 Replies
si***************@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.
Feb 20 '07 #2
On Feb 20, 3:37 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
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.

Feb 20 '07 #3
si***************@gmail.com wrote:
On Feb 20, 3:37 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
>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

Feb 20 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Scott Schluer | last post: by
9 posts views Thread by Andy Sutorius | last post: by
3 posts views Thread by Vu Doan Hung | last post: by
15 posts views Thread by Tanzim Saqib | last post: by
12 posts views Thread by Brian Henry | last post: by
20 posts views Thread by Niyazi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.