Jump to content
  • 0

Nu recunoaste symbolu



2 answers to this question

Recommended Posts

Nu ai definit IsNumeric, pune asta la sfarsitul scriptului:

stock IsNumeric(const stringin[]) 
	new length=strlen(stringin);
	if (length==0) return false;
	for (new i = 0; i < length; i++) 
		if (
		(stringin[i] > '9' || stringin[i] < '0' && stringin[i]!='-' && stringin[i]!='+') // Not a number,'+' or '-'
		|| (stringin[i]=='-' && i!=0)                                             // A '-' but not at first.
		|| (stringin[i]=='+' && i!=0)                                             // A '+' but not at first.
		) return false;
	if (length==1 && (stringin[0]=='-' || stringin[0]=='+')) return false;
	return true;

Ti-am mai zis asta si in alt topic de-al tau, dar tu nu, batman, batman xD

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.