Answers for "c++ is string a number"

C++
4

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

Browse Popular Code Answers by Language