string

  • Thread starter Thread starter miya
  • Start date Start date
miya said:
it is any function for string simular to isdigit()?

why not just use isdigit()?

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

// ...

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

// ...

-cd
 
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?
 
Back
Top