Uppercase, lowercase, number in string
#10

Lol.... This is the inverse of my function. See the explanation.

pawn Code:
for(new i = strlen(string); i > 0; i--) // making a loop, telling the loop to start from the end of the string, and go down until 0.
if(!('A' <= string[i] <= 'Z') // in case is "A" bigger or equal to the position it was found(the pos that is located the character) or "Z" is less or equal to the position it was found.(the pos that is located the character) - basically,inverting the signals.
&& !('a' <= string[i] <= 'z')  // same thing as above...
&& !('0' <= string[i] <= '9'))// same thing as above, but with numbers...
return false; // return false... in case of any of these  statements are true.
return true; // returning true, if all of these statements are false.
Reply


Messages In This Thread
Uppercase, lowercase, number in string - by Wesley221 - 04.08.2012, 10:04
Re: Uppercase, lowercase, number in string - by Misiur - 04.08.2012, 10:34
Re: Uppercase, lowercase, number in string - by Ballu Miaa - 04.08.2012, 11:02
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 11:11
Re: Uppercase, lowercase, number in string - by Misiur - 04.08.2012, 11:16
Re: Uppercase, lowercase, number in string - by MicroD - 04.08.2012, 11:32
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 11:37
Re: Uppercase, lowercase, number in string - by Vince - 04.08.2012, 11:45
Re: Uppercase, lowercase, number in string - by Ballu Miaa - 04.08.2012, 13:04
Re: Uppercase, lowercase, number in string - by leonardo1434 - 04.08.2012, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)