A quick way to check whether the character a is a function is to use the function isalpha(a). If is lower case, return 1; If is upper case, return 2; If is not an alphabet, return 0;
The header file of it is < iostream > or < cctype >.