Witam serdecznie,
Dlaczego po skompilowaniu wyrzuca mi komunikat:
terminate called after throwing an instance of std::out of range.
kod funkcji:
size_t dlugosc = tekst.size();
for(int i=0;i<dlugosc-1;i++){
if(tekst[i]==tekst[i+1]){
tekst.erase(i,1);
}
}
pozdrawiam