There is a code:
for (int i = 0; i < text.length(); ++i) { if(isalpha(rus_alphabet[_indexOfSymbol(text[i], rus_alphabet, rus_size)])) { count_of_symbols[_indexOfSymbol(text[i], rus_alphabet,rus_size)] += 1; } } If the element of the rus_alphabet array, with the index _indexOfSymbol(функция, которая возвращает индекс элемента) is a letter, then add 1. The problem is that isalpha works only for char, and I can’t convert string to char(не char* ) , to compare them. PS string stores one letter. I am comparing the whole string, not character by character. String is an element of an array of strings!
rus_alphabet has the following form: rus_alphabet[0] = "А";
isalphaapplies tochar. - kot_mapku3