it is any function for string simular to isdigit()?
string
Collapse
This topic is closed.
X
X
-
miyaTags: None -
Carl Daniel [VC++ MVP]
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
-
miy
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
Comment