char *strcat(char* strDest, const char*strSrc){
assert(strDest != NULL&&strSrc != NULL);
char* address = strDest;
while (*strDest != '') strDest++;
while (*strSrc != ''){
*strDest = *strSrc;
strDest++;
strSrc++;
}
*strDest = '';//
return address;
}
1.注意参数和返回值
2.要覆盖原字符串’’,结尾添加’’