Dlaczego tak jest?C++ name space confusion - std :: vs :: vs brak prefiksu w wywołaniu tolower?
transform(theWord.begin(), theWord.end(), theWord.begin(), std::tolower);
- nie działa transform(theWord.begin(), theWord.end(), theWord.begin(), tolower);
- nie działa
ale
transform(theWord.begin(), theWord.end(), theWord.begin(), ::tolower);
- działa
theWord jest ciągiem. Mam using namespace std;
Dlaczego działa z prefiksem ::
, a nie z numerem std::
lub bez niczego?
dzięki za pomoc.
Jakie pliki nagłówka jesteś tym? –
'#include #include #include #include #include #include #include ' –
user839913