Проверка типа символов

Простые типы / Символьный тип

char c1 = 'A';
bool isLetter = isalpha(c1);
bool isNumber = isdigit(c1);
//isLetter is 1
//isNumber is 0

string symbolList = "@#$%^&*";
char c2 = '$';
bool isInList = symbolList.find(c2);
//isInList is 1

wcout << "isLetter is " << isLetter << endl;
wcout << "isNumber is " << isNumber << endl;
wcout << "isInList is " << isInList;