Answers for "how to check a string is integer 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

Code answers related to "how to check a string is integer or not in c++"

Browse Popular Code Answers by Language