which is preferd use istrstream or strtol/strtod for reading number from string.

Posted by singh on Stack Overflow See other posts from Stack Overflow or by singh
Published on 2010-03-17T10:00:55Z Indexed on 2010/03/17 10:21 UTC
Read the original article Hit count: 209

Filed under:

Hi

I have to read number from string .which one is safe and preferred

  1. istrstream
  2. atoi/atof
  3. strtol/strto

Please guide me.

© Stack Overflow or respective owner

Related posts about c++