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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top