#include
#include
#include
#include
using namespace std;
inline
char my_tolower( char c )
{ return
static_cast( tolower( static_cast( c ) ) );
}
inline
char my_toupper( char c )
{ return
static_cast( toupper( static_cast( c ) ) );
}
int main( )
{
string book( "The C++ Programming Language, 3rd Edition" );
cout << "String:" << book << endl << endl;
transform( book.begin(), book.end(), book.begin(), my_toupper );
cout << "Big letters:" << book << endl << endl;
transform( book.begin(), book.end(), book.begin(), my_tolower );
cout << "Small letters:" << book;
}