应该很简单吧!
1:
if ((ch >'a'&& ch < 'z')||(ch > 'A' && ch < 'Z'))
{
return 1;
}
return 0;
4:char* strcpy(char *str1, char *str2)
{
if ((str1 == NULL) ||(str2 == NULL))
return NULL;
char *dest = str2;
while (str1 != NULL)
{
*dest++ = * str1++;
}
*dest = '\0';
return str2;
}
----------------解决方案--------------------------------------------------------
char * strcpy(char * str1,char *str2)
{
while (str2++=str1++!='\0') ;
return str2;
}
----------------解决方案--------------------------------------------------------