Function checkInt(const std::string&)

Function Documentation

bool checkInt(const std::string &input)

Checks if a given string represents a valid integer.

Parameters:

input – A string representing the number to be checked.

Returns:

Returns true if the string is a valid integer, false otherwise.