程序出现调试错误,大概问题应该在于传递参数错误,但不知道错在哪了?求大神解答

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#define MAXSIZE 100
char str1[],str2[];
int i,j,k;
void squeeze(char [],char[]);
int main()
{
printf("Please input the string1:");
gets(str1);
printf("Please input the string2:");
gets(str2);
squeeze(char str1,char str2);
return 0;
getch();
}

void squeeze(char s1[],char s2[])
{
for(i=k=0;s1[i]!='\0';i++)
{
for(j=0;s2[j]!='\0';j++)
;
if(s2[j]=='\0')
s1[k++]=s1[i];
}
s1[k]='\0';
for(i=0;s1[i]!='\0';i++)
printf("%c",s1[i]);
}
错误:
error C2144: syntax error : missing ')' before type 'char'
error C2660: 'squeeze' : function does not take 0 parameters
error C2059: syntax error : ')'

1、定义char str1[],str2[];这里的大小要给出,改为:char str1[MAXSIZE],str2[MAXSIZE];
2、调用sqeeze函数用squeeze(str1, str2);不要char
3、不知你的函数功能是什么,不好修改
温馨提示:答案为网友推荐,仅供参考
相似回答