Post #567090
2026-03-02 07:24 UTC
Spot the error?
std::string val = get_string_value();
if (not val.empty())
{
if (val[0] < 0 or val[0] > 9)
{
std::cout << "must start with a digit" << std::endl;
#cpp
Replies (0)
No replies.