请大家帮我看看我的这道程序这里为什么会出错?要怎么改?#includevoid main(){void fun(char *s1,char *s2);char *a1,*a2;gets(a1);fun(a1,a2);printf("%s \n%s \n",a1,a2);}void fun(char *s1,char *s2){int i,j;for(i=0;*s1[i]!='\0';i++); /

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 18:12:18
请大家帮我看看我的这道程序这里为什么会出错?要怎么改?#includevoid main(){void fun(char *s1,char *s2);char *a1,*a2;gets(a1);fun(a1,a2);printf(
xj@_%ZDNQS/;D݈PbJAq)mWfת ers+t2ւ a8>")YW/Z-ؙs=:Ck3ژ]s=0l'Ӝܳ$dOֹ3KfҪ2s f6M̖ĵiL q<1A"PTU6z1L:!ۤA uE$ <*F2B2s Ui=~( F\w!h^{`j ܂52R+q{(I)Gy%ܯUd\@jNYxr19u{,s)g=J_:Y

请大家帮我看看我的这道程序这里为什么会出错?要怎么改?#includevoid main(){void fun(char *s1,char *s2);char *a1,*a2;gets(a1);fun(a1,a2);printf("%s \n%s \n",a1,a2);}void fun(char *s1,char *s2){int i,j;for(i=0;*s1[i]!='\0';i++); /
请大家帮我看看我的这道程序这里为什么会出错?要怎么改?
#include
void main()
{void fun(char *s1,char *s2);
char *a1,*a2;
gets(a1);
fun(a1,a2);
printf("%s \n%s \n",a1,a2);
}
void fun(char *s1,char *s2)
{int i,j;
for(i=0;*s1[i]!='\0';i++); //(invalid indirection)
for(j=0;i!=0;j++,i--) //(invalid indirection)
*s2[j]=*s1[i];} //(invalid indirection)

请大家帮我看看我的这道程序这里为什么会出错?要怎么改?#includevoid main(){void fun(char *s1,char *s2);char *a1,*a2;gets(a1);fun(a1,a2);printf("%s \n%s \n",a1,a2);}void fun(char *s1,char *s2){int i,j;for(i=0;*s1[i]!='\0';i++); /
编译错误提示什么?