how to check robinson no. in c++
Answers
Answered by
1
Answer:
I know the answer of the question but you first marks as brainlist
Answered by
0
Answer:
bool is_number(const std::string& s)
{
std::string::const_iterator it = s.begin();
while (it != s.end() && std::isdigit(*it)) ++it;
return !s.empty() && it == s.end();
}
Similar questions