Answers for "find a string is numberic or not in c++"

C++
6

c++ is string a number

bool isStringNumber(string str){
for(int i=0;i<str.length();i++){
if(str[i]<'0'||str[i]>'9'){
return false;
}
}
return true; 
}
//Beleive in Allah!
//just my slogan
Posted by: Guest on December-21-2020
0

c++ function for checking if a sting is a number

bool isParam (string line)
{
    if (isdigit(atoi(line.c_str())))
        return true;

    return false;
}
Posted by: Guest on October-21-2021

Code answers related to "find a string is numberic or not in c++"

Browse Popular Code Answers by Language