char* MyUpper( char *pDest )
{
assert( nullptr != pDest ); //assert()是断言函数,判断是否是空串
for( char *i = pDest; *i != '\0'; ++i )
{
if( *i < 'a' || *i > 'z' )
{
continue;
}
*i -= 'a' - 'A';
}
return pDest;
}