#include "stdio.h"#define N 80void main(){ char S1[2*N+1],S2[N+1]; char *p,*q; scanf("%s%s",S1,S2); p=S1;q=S2; while(*p++); p--; while(*q) { *p=*q; p++;q++; } *p='\0'; printf("%s\n",S1);}
strcat(s1,s2);
e,没注意要用字符数组。。。看楼上的就好了