I am having trouble converting a string, stored as input, to all lower case.....and save the lower case in a string, search. perhaps my idea is flawed?
search = tolower(input);
>std::transform(msg.begin(), msg.end(), msg.begin(), std::tolower); Congratulations, you've propagated one of the more annoying bugs among C++ help forums. 1) tolower isn't just a function in <cctype>, it's also a template in <locale>, which is allowed to be included by any standard header (<iostream> is the usual culprit). As written, there's an … Read More