#include<iostream.h>
  int main()
{
   void del_chr(char *p,char c);	
   char s[80],c;
   cout<<"ÇëÊäÈë×Ö·û´®£º"<<endl;
   cin>>s;				
   cout<<"ÇëÊäÈëÒªÉ¾³ýµÄ×Ö·û£º"<<endl;
   cin>>c;					
   del_chr(s,c);
   cout<<s<<endl;
   return(0);
}
   void del_chr(char *p,char c)		
{
   char *q;
   for(q=p;*q!='\0';q++)
    if(*q!=c)
     *p++=*q;
   *p='\0';
}
