为什么C++连接总是显示Debug/2.exe : fatal error LNK1169: one or more multiply defined symbols found

#include <stdio.h>
int main()
{
int i;
int a[]={0,1,2,3,4,5,6,7,8,9};
char b[]={'A','B','C','D','E','F','G','H','I','J'};
int c[]={2,4,6,8,10,12,14,16,18,20};

printf("################################ 欢迎点菜 #################################\n");
printf("序号");
for (i=0;i<=9;i++)
printf("%5d",a[i]);
printf("\n");
return 0;
}
中间有部分程序已删,但还是同样会出现这个错误

你有多个头文件或cpp文件,而你在这些文件中重复定义了某些变量或者嵌套引用了头文件,因此报错。
温馨提示:答案为网友推荐,仅供参考