string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • miya

    string

    it is any function for string simular to isdigit()?
  • Carl Daniel [VC++ MVP]

    #2
    Re: string

    miya wrote:[color=blue]
    > it is any function for string simular to isdigit()?[/color]

    why not just use isdigit()?

    #include <string>
    #include <ctype.h>

    // ...

    std::string str;
    if (isdigit(str[0]))
    {
    }

    // ...

    -cd


    Comment

    • miy

      #3
      Re: string

      here is my code:((isdigit( Modifier[0]))
      Where I am checking if Modifier is digit in position 0.
      How do I check if in following position is string?

      Comment

      Working...