How could one convert a string to upper case. The examples I have found from googling only have to deal with chars.
Here is the latest code with C++11
std::string cmd = "Hello World"; for_each(cmd.begin(), cmd.end(), [](char& in){ in = ::toupper(in); });