#include <iostream>
#include <string>
#include <algorithm>
using std::cout;
using std::endl;
void main()
{
std::string str;
str.assign("Hello World!");
std::transform(str.begin(),str.end(),str.begin(),tolower); // or 'toupper'.
cout<<str.c_str()<<endl;
}