How to count dots in a string?
#1

Please give me some example code on how to count dots in a string.

Thank you.
Reply
#2

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

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)