发生错误?
#include<stdio.h>#include<conio.h>
#include<string.h>
void fun(char *a,char *h,char *p)
{
char *q=a;
while(q<h)
{*a=*q;a++;q++;}
while(h<=q<=p)
{
if(*q!='*')
{*a=*q;a++;}
q++;
}
while(q>p)
{
if(*q!='\0')
*a=*q;
}
}
void main()
{
char s[81],*t,*f;
printf("enter a string:\n");
gets(s);
t=f=s;
while(*t) t++;
t--;
while(*t=='*') t--;
while(*f=='*') f++;
fun(s,f,t);
printf("the string after deleted :\n");
puts(s);
}