extracting int of string

Discussion in 'C++' started by Kamik, Sep 24, 2005.

  1. Kamik

    Kamik Guest

    I have one string how this "1 2 3 4 5 20 58"...
    anyone know one method for i transform this string in integer
    variables?

    thanks.
     
    Kamik, Sep 24, 2005
    #1
    1. Advertising

  2. Kamik

    Kamik Guest

    thanks, i ll find more information of this :)
     
    Kamik, Sep 24, 2005
    #2
    1. Advertising

  3. Kamik

    red floyd Guest

    Kamik wrote:
    > I have one string how this "1 2 3 4 5 20 58"...
    > anyone know one method for i transform this string in integer
    > variables?
    >
    > thanks.
    >


    std::istringstream. I'm sure this is a FAQ.
     
    red floyd, Sep 24, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Schnoffos
    Replies:
    2
    Views:
    1,251
    Martien Verbruggen
    Jun 27, 2003
  2. Hal Styli
    Replies:
    14
    Views:
    1,709
    Old Wolf
    Jan 20, 2004
  3. arun
    Replies:
    8
    Views:
    481
    Dave Thompson
    Jul 31, 2006
  4. aling
    Replies:
    8
    Views:
    1,031
    Jim Langston
    Oct 20, 2005
  5. Replies:
    9
    Views:
    464
    James Kanze
    Apr 17, 2007
Loading...

Share This Page