哪里错了啊
gets(a); gets(b); int i,j; for(i=0;a[i]!=0;i++) if (i==n) i++; b[j]=a[i];
在主函数中gets函数将输入的字符串存入str1,然后通过参数传递到fun函数中进行处理,你的fun函数里为什么还要写gets。。。