c语言 出现错误 expected unqualified-id before

#include<stdio.h>
#define N 60
char delete(char s[N])
{ int i,j=0;
char c[N];
for(i=1;i<=N;i++)
{
if(s[i]!=' ') c[j++]=s[i];
if(s[i]=='s') break ;
}
return c[N];
}

int main()
{
char s[N];
printf("%c",gets[s]);
system("pause");
return 0;

}
这个代码出现错误:
3 6 [Error] expected unqualified-id before 'delete'

你自定义函数delete可能和库函数同名了,把函数名再加几个字符。
温馨提示:答案为网友推荐,仅供参考
相似回答