#include
#include
using namespace std;
char* MyStrcat(char *strDest,const char *strSrc)//copy strStr to the end of strDest
{
assert((strDest!=NULL)&&(strSrc!=NULL));
char *strDestCopy=strDest;
strDest=strDest+strlen(strDest);
while(*strSrc!='\0')
{
*strDest++=*strSrc++;
}
return strDestCopy;
}
int main()
{
char string1[100]="hanli";
char *string2="yuanlin";
cout< return 0;
}
阅读(2255) | 评论(0) | 转发(1) |