It is necessary to read the file and replace all Cyrillic characters with spaces, then display the result. What do I need to pass as the third parameter replace_copy_if?
{ ifstream in; in.open(fileName, ios::in); if (in.is_open()) { setlocale(LC_ALL, "Russian"); string str((std::istreambuf_iterator<char>(in)), std::istreambuf_iterator<char>()); string str1; replace_copy_if( str.begin(), str.end(), str1.begin(), [](char n) {return ( n > -65 && n < 0); }, ' ' ); ostream_iterator<char> out(cout); copy(str1.begin(), str1.end(), out); } else { cout << "Could not open the file" << endl; } }