mirror of
https://github.com/avinal/The-Hack-Assembler.git
synced 2026-01-10 07:08:32 +05:30
minor changes
This commit is contained in:
@@ -44,7 +44,7 @@ This was a nice project and taugh me many things. Given below are some miraculou
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
inline bool isNumber(std::string str)
|
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.
|
2. Trim a string of spaces, tabs, carrige return, vertical tabs, newline chars.
|
||||||
|
|||||||
Reference in New Issue
Block a user