Check if string contains only digits, in Lua. ... bool b = true; const int n = strlen(s); for (int i = 0; i < n; ++i) { if (!isdigit(s[i])) { b = false; ...
確定! 回上一頁