#include "stdafx.h"#include "string.h"#include "iomanip.h"int replace(char *source,char *s1,char *s2,int flag){char *pStar,strx[50],l,n=0;l=strlen(s1);while(pStar=strstr(source,s1)){strcpy(strx,pStar+l);*pStar=NULL;strcat(strcpy(pStar,s2),strx);n+=1;}return n;} void main(void){char s... |