[Solved] how to extract and check if first character in array element is a letter [closed]


You can use std::isalpha:

Checks if the given character is an alphabetic character […]

Example:

#include <cctype> // for std::isalpha

if ( std::isalpha( str[0] ) )
    std::cout << "The character is an alphabetic character." << std::endl;

solved how to extract and check if first character in array element is a letter [closed]