Skip to content

Instantly share code, notes, and snippets.

@nvkv
Created June 27, 2011 05:17
Show Gist options
  • Save nvkv/1048344 to your computer and use it in GitHub Desktop.
Save nvkv/1048344 to your computer and use it in GitHub Desktop.
AWESOME isintnumber()
char ystring :: isintnumber()
{
char c=true;
int i=0;
if ( (this->symbols[i]=='-') ||
(this->symbols[i]=='0') ||
(this->symbols[i]=='1') ||
(this->symbols[i]=='2') ||
(this->symbols[i]=='3') ||
(this->symbols[i]=='4') ||
(this->symbols[i]=='5') ||
(this->symbols[i]=='6') ||
(this->symbols[i]=='7') ||
(this->symbols[i]=='8') ||
(this->symbols[i]=='9'))
for (i=1; i<this->length; i++) c=c && ( (this->symbols[i]=='0') ||
(this->symbols[i]=='1') ||
(this->symbols[i]=='2') ||
(this->symbols[i]=='3') ||
(this->symbols[i]=='4') ||
(this->symbols[i]=='5') ||
(this->symbols[i]=='6') ||
(this->symbols[i]=='7') ||
(this->symbols[i]=='8') ||
(this->symbols[i]=='9'));
else c=false;
return c;
}
@nvkv
Copy link
Author

nvkv commented Jun 27, 2011

Какбе хочется спросить ШТОЭТААА?!11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment