C++ String into Upper case or lower case




C++ String into Upper case or lower case

#include <iostream>
#include <string>

using namespace std;
 
int main()
{
char str1 [30], temp[30];
cout < < "Enter the string:";
cin > > str1;
strcpy ( temp, str1);
cout < < "strupr ( temp ) : " < < strupr (temp) < < end1;
cout < < "strlwr (temp) : " < < strlwr ( temp) < < end1;
system("pause");
 
return 0;
}

Output