Sunday, March 17, 2013

C++ program to convert a string into upper-case or lower-case

10:22 AM

Write a C++ program to convert the string from upper case to 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;
}

 ---------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------




---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top