Jak w temacie, mam problem z tą funkcją tolower(), mianowicie chce zrobić sortowanie stringów, a mam problem, gdyż źle mi porównuje wielkie litery z małymi, więc chciałem użyć funkcji tolower, żeby zmniejszyć litery, wrzucić do zmiennych pomocniczych, a potem porownać, ale nie działa mi tolower:
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
int main ()
{
string pom;
string pom2="AaA";
for(int i = 0; i<pom2.length(); i++)
pom[i] = tolower(pom2[i]);
cout<<pom;
return 0;
}