#include <stdio.h>
main()
{
int num=0;
char ch[100],word,*p;
p=ch;
printf("please a string:");
gets(p);
printf("please input a world:");
word=getchar();
while(*p!='/0'){
if(*p!=word){
putchar(*p++);
}
else{
p++;
num++;
}
}
printf("/nthe number of word=%d",num);
}