Posts: 484
Threads: 131
Joined: Jul 2011
Reputation:
0
i just tested that code, and my compiler didnt crash, works perfect..
Posts: 1,208
Threads: 36
Joined: Apr 2015
Код:
isEmail(email[])
{
if (!email[0]) return false;
new
len = strlen(email),
arroba = 0,
ponto = 0;
for(arroba = 0 ; arroba < len; arroba++) {
if(!(email[arroba] - 64)) {
for( ponto = arroba; ponto < len; ponto++) {
if(!(email[ponto] - 46)) {
break;
}
}
break;
}
}
return (arroba + 1 < ponto < len && ponto && arroba); //not fixed
}
syntax looks 'for' incorrectly
or
return (arroba + 1 < ponto < len && ponto && arroba);
should return data type -inf, ..., -1, 0, 1, 2, ..., inf or "a", "abc"
and with you it looks like the condition "if"
Posts: 826
Threads: 64
Joined: Oct 2013
Reputation:
0
Try using latest Zeex compiler.