I\'ve had quite a bit of trouble trying to write a function that checks if a string is a number. For a game I am writing I just need to check if a line from the file I am r
C/C++ style for unsigned integers, using range based for C++11:
for
int isdigits(const std::string & s) { for (char c : s) if (!isdigit(c)) return (0); return (1); }