The Reason it doesn't work is because strlwr is originally a C function (and a non standard), and C doesn't know/have a std::string type; (class) therefore it doesn't have a implementation for it
There are also some issues w/ your code : <iostream.h> must be <iostream>main must be int main()
remove string in line 7, we don't need to include the type when passing arguments
Consider using this function instead ( for std::string )
1 2 3 4 5 6 7 8
std::string strlwr ( std::string& str )
{
std::string temp( str );
for( auto& i : temp )
i = tolower( i );
return temp;
}