Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int isNumber(string thing){
- for(int i=0; i<thing.length(); i++){
- if( thing[i]==45 || thing[i]<48 || thing[i]>57)
- return 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement