【罗马废墟给定程序中,函数FUN的功能是:在形参S所指字符串中寻找与参数C相同的字符,并在其后插入一个与之相的字符,若找不到相同的字符则函数不做任何处理.例如,S所指字符串:baacda,c中的字】
<p>问题:【罗马废墟给定程序中,函数FUN的功能是:在形参S所指字符串中寻找与参数C相同的字符,并在其后插入一个与之相的字符,若找不到相同的字符则函数不做任何处理.例如,S所指字符串:baacda,c中的字】<p>答案:↓↓↓<p class="nav-title mt10" style="border-top:1px solid #ccc;padding-top: 10px;">胡永健的回答:<div class="content-b">网友采纳 #include voidfun(char*s,charc) {inti,j,n; // s=s;i i=i+1; } } main() {chars="baacda",c; printf("nThestring:%sn",s); printf("nInputacharacter:");scanf("%c",&c); fun(s,c); printf("nTheresultis:%sn",s); }
页:
[1]