程序的函数找错
#include<stdio.h>#include<string.h>
int main()
{ void seek(char x[],char y[]);
char a[10],b[100];
gets(b);
printf("原字符串:\n");
puts(b);
seek(a,b);//将b中的元音字符复制到a中
puts(a);
return 0;
}
void seek(char x[],char y[])
{int i,j=0;
for(i=0;y[i]!='\0';i++)
if(y[i]=='a'||y[i]=='A'||y[i]=='e'||y[i]=='I'||y[i]=='o'||y[i]=="O'||y[i]=='u'||y[i]=='U')
{x[j]=y[i];
j=j+1;
}
x[j]='\0';
}