70,023
社区成员




# include(iostream.h) //编译肯定通不过,改为# include <iostream.h>
# include(string.h) //同上
char *stringcat(char *p1,char *p2)
{
if(p1 == NULL || p2 == NULL) return NULL; //加上这行,否则指针NULL时出错
char *p=p1;
while(*p1++);
p1--;
while(*p1++=*p2++);
return p;}