#include <stdio.h>
#include <string.h>
void fun(char *a)
{
int i = 0,j;
int m,n;
while(a[i] == '*')
i++;
for(m = 0; m <strlen(a); m++,i++)
{
a[m] = a[i];
}
a[m] = '\0';
j = strlen(a)-1;
while(a[j] == '*')
j--;
a[j+1] = '\0';
}
int main(void)
{
char a[80];
gets(a);
fun(a);
puts(a);
}
追问谢谢!!!!
本回答被提问者采纳