How to count dots in a string?
#2

Код:
GetDotCount(string[])
{
	new dots;
    for(new i; i < sizeof(string); i++)
	{
	    if(string[i] == '.') dots++;
	}
	return dots;
}
Reply


Messages In This Thread
How to count dots in a string? - by Whizion - 24.08.2010, 03:03
Re: How to count dots in a string? - by CJ101 - 24.08.2010, 03:09
Re: How to count dots in a string? - by Whizion - 24.08.2010, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)