#include#include#include#include#define N 50#define M 50void ReplaceString(char *Src,char *a,char *b) char *ptr; int len = strlen(Src); ptr = (char*)malloc(sizeof(char)*len + 10); strcpy(ptr, Src); int subLen_a = strlen(a);int subLen_b=strlen(b);int j;int k=subLen_b-subLen_a; for ( int i=0; ilen; i+ ) if ( 0=strncmp(&ptri, a, subLen_a) )for(j=i+subLen_a;jlen;j+)pt