07.10.2015, 19:10
Код:
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 }
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"