minor changes

This commit is contained in:
Avinal Kumar
2020-09-05 10:50:06 +05:30
committed by GitHub
parent 18a080efa1
commit a678f8c15a

View File

@@ -44,7 +44,7 @@ This was a nice project and taugh me many things. Given below are some miraculou
#include <algorithm>
inline bool isNumber(std::string str)
{
return (!str.empty && std::all_of(str.begin(), str.end(), ::isdigit));
return (!str.empty() && std::all_of(str.begin(), str.end(), ::isdigit));
}
```
2. Trim a string of spaces, tabs, carrige return, vertical tabs, newline chars.