Answers for "check if a string is a number in c++"

C++
5

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
1

string c++ if letter or number

char test='a';
cout<<isalpha(test);
Posted by: Guest on August-20-2020

Code answers related to "check if a string is a number in c++"

Browse Popular Code Answers by Language