14.07.2011, 14:21
Hi, maybe someone have a good idea how to create function which would check if there are numbers and letters in string?
I have idea for this, but its long
I have idea for this, but its long
![Evil](images/smilies/twisted.gif)
IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}