Thanks a lot guys. The due date for my assignment is today and everything is perfect.

I didn't use transformation though. I know how it works but still unsure how to use it, as in what to write to use the code. Can someone help me with this


I don't understand how to use this
Code:
for(size_t i = 0; i < string.size(); ++i)
{
    string[i] = std::tolower(string[i]);
}
//now your entire string is tolower()-ed
//and you can proceed regardless whether your user accidentally left caps lock on
Can someone explain this.... Its so complex for me casue I just started learning C++ for a month. I don't really listen to the lecturer cause he really doesn't know how to explain. All we do is read what is in the projector and try our best to apply it.