69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
char *replace(char STR[][],char *str1,char *str2,int num)
{
for(i=0;i<num;i++)
if(strcmp(STR[i],str1)==0){
strcpy(STR[i],str2);
}
return STR;
}